bnxt: delete some unreachable code
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 6 Nov 2017 11:43:01 +0000 (14:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
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 <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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);