提交 42ca728b 编写于 作者: D Dan Carpenter 提交者: David S. Miller

bnxt: delete some unreachable code

We return on the previous line so this "return 0;" statement should just
be deleted.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a8938773
...@@ -148,7 +148,6 @@ static int bnxt_vf_rep_setup_tc_block(struct net_device *dev, ...@@ -148,7 +148,6 @@ static int bnxt_vf_rep_setup_tc_block(struct net_device *dev,
return tcf_block_cb_register(f->block, return tcf_block_cb_register(f->block,
bnxt_vf_rep_setup_tc_block_cb, bnxt_vf_rep_setup_tc_block_cb,
vf_rep, vf_rep); vf_rep, vf_rep);
return 0;
case TC_BLOCK_UNBIND: case TC_BLOCK_UNBIND:
tcf_block_cb_unregister(f->block, tcf_block_cb_unregister(f->block,
bnxt_vf_rep_setup_tc_block_cb, vf_rep); bnxt_vf_rep_setup_tc_block_cb, vf_rep);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册