staging: fsl-dpaa2/eth: Remove dead code
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Thu, 29 Jun 2017 16:25:46 +0000 (11:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jul 2017 06:41:00 +0000 (08:41 +0200)
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>
drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c

index 5312edc26f01d027f163296bc49309415173b184..031179ab3a22fd3cc38879acc4d143ac488734ea 100644 (file)
@@ -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];