]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
scsi: bnx2fc: Remove some unused fields in struct bnx2fc_rport
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 23 Aug 2024 07:59:05 +0000 (09:59 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 29 Aug 2024 01:33:21 +0000 (21:33 -0400)
Some fields are unused in struct bnx2fc_rport.  Remove them in order to
save 96 bytes on a x86_64.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/42e20b159f3bbb12da7796463a521ca051bd5274.1724399924.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bnx2fc/bnx2fc.h

index 7e74f77da14f2f36a15cee623fa5bb3e82b8b5d4..6d47a4d8eed6b8858acd875612f62b6b3065ca99 100644 (file)
@@ -358,18 +358,12 @@ struct bnx2fc_rport {
        dma_addr_t lcq_dma;
        u32 lcq_mem_size;
 
-       void *ofld_req[4];
-       dma_addr_t ofld_req_dma[4];
-       void *enbl_req;
-       dma_addr_t enbl_req_dma;
-
        spinlock_t tgt_lock;
        spinlock_t cq_lock;
        atomic_t num_active_ios;
        u32 flush_in_prog;
        unsigned long timestamp;
        unsigned long retry_delay_timestamp;
-       struct list_head free_task_list;
        struct bnx2fc_cmd *pending_queue[BNX2FC_SQ_WQES_MAX+1];
        struct list_head active_cmd_queue;
        struct list_head els_queue;