bnxt: delete some unreachable code
authorDan Carpenter <[email protected]>
Mon, 6 Nov 2017 11:43:01 +0000 (14:43 +0300)
committerDavid S. Miller <[email protected]>
Wed, 8 Nov 2017 04:30:37 +0000 (13:30 +0900)
We return on the previous line so this "return 0;" statement should just
be deleted.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c

index b6aa7db9970520412e26dd3cfd7f3a24a222746a..69186d188c43899e42779f9511d4e8ffbb3d158a 100644 (file)
@@ -148,7 +148,6 @@ static int bnxt_vf_rep_setup_tc_block(struct net_device *dev,
                return tcf_block_cb_register(f->block,
                                             bnxt_vf_rep_setup_tc_block_cb,
                                             vf_rep, vf_rep);
-               return 0;
        case TC_BLOCK_UNBIND:
                tcf_block_cb_unregister(f->block,
                                        bnxt_vf_rep_setup_tc_block_cb, vf_rep);