• Arnd Bergmann's avatar
    net: caif: fix misleading indentation · 8e0cc8c3
    Arnd Bergmann authored
    gcc points out code that is not indented the way it is
    interpreted:
    
    net/caif/cfpkt_skbuff.c: In function 'cfpkt_setlen':
    net/caif/cfpkt_skbuff.c:289:4: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
        return cfpkt_getlen(pkt);
        ^~~~~~
    net/caif/cfpkt_skbuff.c:286:3: note: ...this 'else' clause, but it is not
       else
       ^~~~
    
    It is clear from the context that not returning here would be
    a bug, as we'd end up passing a negative length into a function
    that takes a u16 length, so it is not missing curly braces
    here, and I'm assuming that the indentation is the only part
    that's wrong about it.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8e0cc8c3
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
caif_dev.c Loading commit data...
caif_socket.c Loading commit data...
caif_usb.c Loading commit data...
cfcnfg.c Loading commit data...
cfctrl.c Loading commit data...
cfdbgl.c Loading commit data...
cfdgml.c Loading commit data...
cffrml.c Loading commit data...
cfmuxl.c Loading commit data...
cfpkt_skbuff.c Loading commit data...
cfrfml.c Loading commit data...
cfserl.c Loading commit data...
cfsrvl.c Loading commit data...
cfutill.c Loading commit data...
cfveil.c Loading commit data...
cfvidl.c Loading commit data...
chnl_net.c Loading commit data...