Skip to content

Commit 12b6b8f

Browse files
nathanchancegregkh
authored andcommitted
net: smc911x: Adjust indentation in smc911x_phy_configure
commit 5c61e22 upstream. 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: 0a0c72c ("[PATCH] RE: [PATCH 1/1] net driver: Add support for SMSC LAN911x line of ethernet chips") Link: ClangBuiltLinux/linux#796 Signed-off-by: Nathan Chancellor <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2f152bf commit 12b6b8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/smsc/smc911x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ static void smc911x_phy_configure(struct work_struct *work)
948948
if (lp->ctl_rspeed != 100)
949949
my_ad_caps &= ~(ADVERTISE_100BASE4|ADVERTISE_100FULL|ADVERTISE_100HALF);
950950

951-
if (!lp->ctl_rfduplx)
951+
if (!lp->ctl_rfduplx)
952952
my_ad_caps &= ~(ADVERTISE_100FULL|ADVERTISE_10FULL);
953953

954954
/* Update our Auto-Neg Advertisement Register */

0 commit comments

Comments
 (0)