mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
7b9de71bd5
commit
0a24e42969
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue