提交 cbdc666f 编写于 作者: K Kamal Heib 提交者: Doug Ledford

RDMA/ipoib: Remove check for ETH_SS_TEST

The default action for unlisted tests is "not-supported", so given that
ipoib doesn't support ETH_SS_TEST, there is no need to check for it
in the case statements, just let it get caught by the default: case.

Fixes: e3614bc9 ("IB/ipoib: Add readout of statistics using ethtool")
Signed-off-by: NKamal Heib <kamalheib1@gmail.com>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 e39afe3d
......@@ -138,7 +138,6 @@ static void ipoib_get_strings(struct net_device __always_unused *dev,
p += ETH_GSTRING_LEN;
}
break;
case ETH_SS_TEST:
default:
break;
}
......@@ -149,7 +148,6 @@ static int ipoib_get_sset_count(struct net_device __always_unused *dev,
switch (sset) {
case ETH_SS_STATS:
return IPOIB_GLOBAL_STATS_LEN;
case ETH_SS_TEST:
default:
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册