]> git.baikalelectronics.ru Git - kernel.git/commit
net: smc911x: Adjust indentation in smc911x_phy_configure
authorNathan Chancellor <natechancellor@gmail.com>
Mon, 9 Dec 2019 21:50:27 +0000 (14:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Dec 2019 04:31:46 +0000 (20:31 -0800)
commitcbc0f51a349f25f0b3a68a315501f5419d518210
treecf6c018c971461ccadcfe345495f9d120f74aca0
parentf3c84cd9e88e7905f1c76e83150e552098b785aa
net: smc911x: Adjust indentation in smc911x_phy_configure

Clang warns:

../drivers/net/ethernet/smsc/smc911x.c:939:3: warning: misleading
indentation; statement is not part of the previous 'if'
[-Wmisleading-indentation]
         if (!lp->ctl_rfduplx)
         ^
../drivers/net/ethernet/smsc/smc911x.c:936:2: note: previous statement
is here
        if (lp->ctl_rspeed != 100)
        ^
1 warning generated.

This warning occurs because there is a space after the tab on this line.
Remove it so that the indentation is consistent with the Linux kernel
coding style and clang no longer warns.

Fixes: 82e98441e05e ("[PATCH] RE: [PATCH 1/1] net driver: Add support for SMSC LAN911x line of ethernet chips")
Link: https://github.com/ClangBuiltLinux/linux/issues/796
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smc911x.c