scsi: libcxgbi: Remove an unused field in struct cxgbi_device
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 1 Sep 2024 20:45:27 +0000 (22:45 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 13 Sep 2024 00:20:14 +0000 (20:20 -0400)
Usage of .dev_ddp_cleanup() in libcxgbi was removed by commit 5999299f1ce9
("cxgb3i,cxgb4i,libcxgbi: remove iSCSI DDP support") on 2016-07.

.csk_rx_pdu_ready() and debugfs_root have apparently never been used since
introduction by commit 9ba682f01e2f ("[SCSI] libcxgbi: common library for
cxgb3i and cxgb4i")

Remove the now unused function pointer from struct cxgbi_device.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/58f77f690d85e2c653447e3e3fc4f8d3c3ce8563.1725223504.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxgbi/libcxgbi.h

index d92cf1d..0909b03 100644 (file)
@@ -485,7 +485,6 @@ struct cxgbi_device {
        unsigned char nmtus;
        unsigned char nports;
        struct pci_dev *pdev;
-       struct dentry *debugfs_root;
        struct iscsi_transport *itp;
        struct module *owner;
 
@@ -499,7 +498,6 @@ struct cxgbi_device {
        unsigned int rxq_idx_cntr;
        struct cxgbi_ports_map pmap;
 
-       void (*dev_ddp_cleanup)(struct cxgbi_device *);
        struct cxgbi_ppm* (*cdev2ppm)(struct cxgbi_device *);
        int (*csk_ddp_set_map)(struct cxgbi_ppm *, struct cxgbi_sock *,
                               struct cxgbi_task_tag_info *);
@@ -512,7 +510,6 @@ struct cxgbi_device {
                                   unsigned int, int);
 
        void (*csk_release_offload_resources)(struct cxgbi_sock *);
-       int (*csk_rx_pdu_ready)(struct cxgbi_sock *, struct sk_buff *);
        u32 (*csk_send_rx_credits)(struct cxgbi_sock *, u32);
        int (*csk_push_tx_frames)(struct cxgbi_sock *, int);
        void (*csk_send_abort_req)(struct cxgbi_sock *);