Skip to content

Commit 82c1330

Browse files
Sergei Shtylyovdavem330
authored andcommitted
sh_eth: kill useless *switch* defaults
The driver often has the *default* cases doing nothing in the *switch* statements with the integer expressions -- remove them. Signed-off-by: Sergei Shtylyov <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bb64b03 commit 82c1330

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

drivers/net/ethernet/renesas/sh_eth.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,6 @@ static void sh_eth_set_rate_gether(struct net_device *ndev)
500500
case 1000: /* 1000BASE */
501501
sh_eth_write(ndev, GECMR_1000, GECMR);
502502
break;
503-
default:
504-
break;
505503
}
506504
}
507505

@@ -592,8 +590,6 @@ static void sh_eth_set_rate_r8a777x(struct net_device *ndev)
592590
case 100:/* 100BASE */
593591
sh_eth_modify(ndev, ECMR, ECMR_ELB, ECMR_ELB);
594592
break;
595-
default:
596-
break;
597593
}
598594
}
599595

@@ -658,8 +654,6 @@ static void sh_eth_set_rate_sh7724(struct net_device *ndev)
658654
case 100:/* 100BASE */
659655
sh_eth_modify(ndev, ECMR, ECMR_RTM, ECMR_RTM);
660656
break;
661-
default:
662-
break;
663657
}
664658
}
665659

@@ -698,8 +692,6 @@ static void sh_eth_set_rate_sh7757(struct net_device *ndev)
698692
case 100:/* 100BASE */
699693
sh_eth_write(ndev, 1, RTRATE);
700694
break;
701-
default:
702-
break;
703695
}
704696
}
705697

@@ -767,8 +759,6 @@ static void sh_eth_set_rate_giga(struct net_device *ndev)
767759
case 1000: /* 1000BASE */
768760
sh_eth_write(ndev, 0x00000020, GECMR);
769761
break;
770-
default:
771-
break;
772762
}
773763
}
774764

@@ -2917,8 +2907,6 @@ static const u16 *sh_eth_get_register_offset(int register_type)
29172907
case SH_ETH_REG_FAST_SH3_SH2:
29182908
reg_offset = sh_eth_offset_fast_sh3_sh2;
29192909
break;
2920-
default:
2921-
break;
29222910
}
29232911

29242912
return reg_offset;

0 commit comments

Comments
 (0)