drivers/net: Move && and || to end of previous line
Only files where David Miller is the primary git-signer. wireless, wimax, ixgbe, etc are not modified. Compile tested x86 allyesconfig only Not all files compiled (not x86 compatible) Added a few > 80 column lines, which I ignored. Existing checkpatch complaints ignored. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
3454f83583
commit
8e95a2026f
@ -1976,27 +1976,27 @@ static int emac_ethtool_set_settings(struct net_device *ndev,
|
||||
if (cmd->autoneg == AUTONEG_DISABLE) {
|
||||
switch (cmd->speed) {
|
||||
case SPEED_10:
|
||||
if (cmd->duplex == DUPLEX_HALF
|
||||
&& !(f & SUPPORTED_10baseT_Half))
|
||||
if (cmd->duplex == DUPLEX_HALF &&
|
||||
!(f & SUPPORTED_10baseT_Half))
|
||||
return -EINVAL;
|
||||
if (cmd->duplex == DUPLEX_FULL
|
||||
&& !(f & SUPPORTED_10baseT_Full))
|
||||
if (cmd->duplex == DUPLEX_FULL &&
|
||||
!(f & SUPPORTED_10baseT_Full))
|
||||
return -EINVAL;
|
||||
break;
|
||||
case SPEED_100:
|
||||
if (cmd->duplex == DUPLEX_HALF
|
||||
&& !(f & SUPPORTED_100baseT_Half))
|
||||
if (cmd->duplex == DUPLEX_HALF &&
|
||||
!(f & SUPPORTED_100baseT_Half))
|
||||
return -EINVAL;
|
||||
if (cmd->duplex == DUPLEX_FULL
|
||||
&& !(f & SUPPORTED_100baseT_Full))
|
||||
if (cmd->duplex == DUPLEX_FULL &&
|
||||
!(f & SUPPORTED_100baseT_Full))
|
||||
return -EINVAL;
|
||||
break;
|
||||
case SPEED_1000:
|
||||
if (cmd->duplex == DUPLEX_HALF
|
||||
&& !(f & SUPPORTED_1000baseT_Half))
|
||||
if (cmd->duplex == DUPLEX_HALF &&
|
||||
!(f & SUPPORTED_1000baseT_Half))
|
||||
return -EINVAL;
|
||||
if (cmd->duplex == DUPLEX_FULL
|
||||
&& !(f & SUPPORTED_1000baseT_Full))
|
||||
if (cmd->duplex == DUPLEX_FULL &&
|
||||
!(f & SUPPORTED_1000baseT_Full))
|
||||
return -EINVAL;
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user