Re: [PATCH v2 2/2] staging: lustre: Cleanup cfs_str2mask in libcfs_string.c

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

 



Cheers. I was checking with --terse and that warning was not showing.
I'll just fix that up now.

Thanks for your help! New to this...
Matthew Tyler

Mob: +61407964325
Site: http://matthewtyler.io/



On Mon, Dec 15, 2014 at 10:13 PM, Dan Carpenter
<dan.carpenter@xxxxxxxxxx> wrote:
> On Mon, Dec 15, 2014 at 10:05:34PM +0800, Matthew Tyler wrote:
>>               /* find token length */
>> -             for (len = 0; str[len] != 0 && !isspace(str[len]) &&
>> -                   str[len] != '+' && str[len] != '-'; len++);
>> +             len = 0;
>> +             while (str[len] != '\0' && !isspace(str[len]) &&
>> +                     str[len] != '+' && str[len] != '-')
>
> This isn't aligned correctly.  I think checkpatch.pl --strict will warn
> here.  It should be:
>
>                 while (str[len] != '\0' && !isspace(str[len]) &&
>                        str[len] != '+' && str[len] != '-')
>
> [tab][tab][space][space][space][space][space][space][space]str[len] ...
>
> Otherwise, it looks good.
>
> regards,
> dan carpenter
>
>
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux