Re: [PATCH] dont decrement counters from scsi_kill_request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Al Viro wrote:
>On Wed, Jan 04, 2006 at 08:51:57AM +0100, Rolf Eike Beer wrote:
>> Mike Christie wrote:
>> >+	while (end_that_request_first(req, 0, req->nr_sectors))
>> >+		;
>>
>> This should be something like
>>
>> while (...)
>> 	{}
>>
>> so it is absolutely clear that the empty body is intentional.
>
>Please, do not inflict that ugliness on everyone.  FWIW, it's less
>idiomatic than normal use of ; and personally I'd parse it as "somebody
>had fscked up using editor", not as "wow, they _really_ meant it to be
>an empty body".

Using only ; on a single line looks like some code left over from removing 
code... Ok, so let's agree to disagree. Since coding style says the opening 
brace should be on the same line as the while, would it be better to put 
everthing in one line to make clear what's going on?

Eike

Attachment: pgpr4UfSIHHK6.pgp
Description: PGP signature


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux