Skip to content

Commit

Permalink
bnx2fc: remove unused variable hash_table_size
Browse files Browse the repository at this point in the history
hash_table_size is not used by the bnx2fc_free_hash_table() function.

Signed-off-by: Maurizio Lombardi <[email protected]>
Acked-by: Eddie Wai <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
  • Loading branch information
maurizio-lombardi authored and Christoph Hellwig committed May 19, 2014
1 parent 96444fb commit b044d14
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/scsi/bnx2fc/bnx2fc_hwi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b044d14

Please sign in to comment.