lkml.org 
[lkml]   [2018]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] staging: erofs: Add braces to do-while statements
    From
    Date
    (mrph.  premature send)

    On Sun, 2018-12-09 at 17:20 +0100, Greg KH wrote:
    > On Sun, Dec 09, 2018 at 04:59:00PM +0100, Thomas Jespersen wrote:
    > > This fixes warning reported by sparse (with -Wsparse-all).
    >
    > Why is sparse warning about this?

    Probably because it's the kernel preferred style
    to use single statement

    do {
    <foo>;
    } while (<bar>);

    over

    do
    <foo>;
    while (<bar>);

    by about a 20:1 ratio.


    \
     
     \ /
      Last update: 2018-12-09 18:30    [W:2.269 / U:0.072 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site