]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
bnx2fc: remove unused variable hash_table_size
authorMaurizio Lombardi <mlombard@redhat.com>
Tue, 1 Apr 2014 11:58:20 +0000 (13:58 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 17:29:57 +0000 (19:29 +0200)
hash_table_size is not used by the bnx2fc_free_hash_table() function.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Acked-by: Eddie Wai <eddie.wai@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/bnx2fc/bnx2fc_hwi.c

index 46a37657307fd9dae74e800709f80f2140da65a5..261af2a41d2481d3ad24ac2dcc99038c19f9013a 100644 (file)
@@ -1966,12 +1966,9 @@ static void bnx2fc_free_hash_table(struct bnx2fc_hba *hba)
 {
        int i;
        int segment_count;
-       int hash_table_size;
        u32 *pbl;
 
        segment_count = hba->hash_tbl_segment_count;
-       hash_table_size = BNX2FC_NUM_MAX_SESS * BNX2FC_MAX_ROWS_IN_HASH_TBL *
-               sizeof(struct fcoe_hash_table_entry);
 
        pbl = hba->hash_tbl_pbl;
        for (i = 0; i < segment_count; ++i) {