sh_eth: kill useless *switch* defaults
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 14 Feb 2016 19:56:33 +0000 (22:56 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2016 20:30:23 +0000 (15:30 -0500)
The driver often has the *default* cases doing nothing in the *switch*
statements with  the integer expressions -- remove them.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c

index 0a150b2289146fe6c996b4ad338b9d6b45f56803..a2767336b7c54512cb68656ad406ec0bf43574fc 100644 (file)
@@ -500,8 +500,6 @@ static void sh_eth_set_rate_gether(struct net_device *ndev)
        case 1000: /* 1000BASE */
                sh_eth_write(ndev, GECMR_1000, GECMR);
                break;
-       default:
-               break;
        }
 }
 
@@ -592,8 +590,6 @@ static void sh_eth_set_rate_r8a777x(struct net_device *ndev)
        case 100:/* 100BASE */
                sh_eth_modify(ndev, ECMR, ECMR_ELB, ECMR_ELB);
                break;
-       default:
-               break;
        }
 }
 
@@ -658,8 +654,6 @@ static void sh_eth_set_rate_sh7724(struct net_device *ndev)
        case 100:/* 100BASE */
                sh_eth_modify(ndev, ECMR, ECMR_RTM, ECMR_RTM);
                break;
-       default:
-               break;
        }
 }
 
@@ -698,8 +692,6 @@ static void sh_eth_set_rate_sh7757(struct net_device *ndev)
        case 100:/* 100BASE */
                sh_eth_write(ndev, 1, RTRATE);
                break;
-       default:
-               break;
        }
 }
 
@@ -767,8 +759,6 @@ static void sh_eth_set_rate_giga(struct net_device *ndev)
        case 1000: /* 1000BASE */
                sh_eth_write(ndev, 0x00000020, GECMR);
                break;
-       default:
-               break;
        }
 }
 
@@ -2917,8 +2907,6 @@ static const u16 *sh_eth_get_register_offset(int register_type)
        case SH_ETH_REG_FAST_SH3_SH2:
                reg_offset = sh_eth_offset_fast_sh3_sh2;
                break;
-       default:
-               break;
        }
 
        return reg_offset;