diff options
author | Ioana Radulescu <ruxandra.radulescu@nxp.com> | 2017-06-29 11:25:46 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-16 08:41:00 +0200 |
commit | 0a24e42969b8eab55dfa78b299310094adca9734 (patch) | |
tree | 020446b359a4acd4aa6b9027203b98f0442c0f3e /drivers/staging/fsl-dpaa2 | |
parent | 7b9de71bd5d53e1f20166d7a182f277ff7bbc1f3 (diff) | |
download | linux-0a24e42969b8eab55dfa78b299310094adca9734.tar.bz2 |
staging: fsl-dpaa2/eth: Remove dead code
All possible values of the switch statement are explicitly
handled, so there's no need to have a default branch.
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Acked-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fsl-dpaa2')
-rw-r--r-- | drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c index 5312edc26f01..031179ab3a22 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c @@ -217,8 +217,6 @@ static void dpaa2_eth_get_ethtool_stats(struct net_device *net_dev, case 2: num_cnt = sizeof(dpni_stats.page_2) / sizeof(u64); break; - default: - break; } for (k = 0; k < num_cnt; k++) *(data + i++) = dpni_stats.raw.counter[k]; |