drivers/net/ethernet/broadcom/bnxt/bnxt.c:1290:5-7: Unneeded variable: "rc". 
Return "0" on line 1304


 Remove unneeded variable used to store return value.

Generated by: scripts/coccinelle/misc/returnvar.cocci

CC: Michael Chan <mc...@broadcom.com>
Signed-off-by: Fengguang Wu <fengguang...@intel.com>
---

Please take the patch only if it's a positive warning. Thanks!

 bnxt.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
@@ -1287,7 +1287,6 @@ next_rx_no_prod:
 static int bnxt_async_event_process(struct bnxt *bp,
                                    struct hwrm_async_event_cmpl *cmpl)
 {
-       int rc = 0;
        u16 event_id = le16_to_cpu(cmpl->event_id);
 
        /* TODO CHIMP_FW: Define event id's for link change, error etc */
@@ -1301,7 +1300,7 @@ static int bnxt_async_event_process(stru
                           event_id);
                break;
        }
-       return rc;
+       return 0;
 }
 
 static int bnxt_hwrm_handler(struct bnxt *bp, struct tx_cmp *txcmp)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to