Commit 0a24e429 authored by Ioana Radulescu's avatar Ioana Radulescu Committed by Greg Kroah-Hartman

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: default avatarIoana Radulescu <ruxandra.radulescu@nxp.com>
Acked-by: default avatarBogdan Purcareata <bogdan.purcareata@nxp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7b9de71b
...@@ -217,8 +217,6 @@ static void dpaa2_eth_get_ethtool_stats(struct net_device *net_dev, ...@@ -217,8 +217,6 @@ static void dpaa2_eth_get_ethtool_stats(struct net_device *net_dev,
case 2: case 2:
num_cnt = sizeof(dpni_stats.page_2) / sizeof(u64); num_cnt = sizeof(dpni_stats.page_2) / sizeof(u64);
break; break;
default:
break;
} }
for (k = 0; k < num_cnt; k++) for (k = 0; k < num_cnt; k++)
*(data + i++) = dpni_stats.raw.counter[k]; *(data + i++) = dpni_stats.raw.counter[k];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment