]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
scsi: qedi: Remove unused variable udev & uctrl
authorXie XiuQi <xiexiuqi@huawei.com>
Tue, 5 May 2020 12:19:04 +0000 (20:19 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 12 May 2020 02:23:22 +0000 (22:23 -0400)
uctrl and udev are unused after commit 9632a6b4b747 ("scsi: qedi: Move LL2
producer index processing in BH.")

Remove them.

Link: https://lore.kernel.org/r/20200505121904.25702-1-xiexiuqi@huawei.com
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedi/qedi_main.c

index 46584e16d635c5e8c3afde455e7e1e8a51d541e1..81a307695cc91caf23d871865c7c542ccaaac9be 100644 (file)
@@ -662,8 +662,6 @@ exit_setup_shost:
 static int qedi_ll2_rx(void *cookie, struct sk_buff *skb, u32 arg1, u32 arg2)
 {
        struct qedi_ctx *qedi = (struct qedi_ctx *)cookie;
-       struct qedi_uio_dev *udev;
-       struct qedi_uio_ctrl *uctrl;
        struct skb_work_list *work;
        struct ethhdr *eh;
 
@@ -702,9 +700,6 @@ static int qedi_ll2_rx(void *cookie, struct sk_buff *skb, u32 arg1, u32 arg2)
                  "Allowed frame ethertype [0x%x] len [0x%x].\n",
                  eh->h_proto, skb->len);
 
-       udev = qedi->udev;
-       uctrl = udev->uctrl;
-
        work = kzalloc(sizeof(*work), GFP_ATOMIC);
        if (!work) {
                QEDI_WARN(&qedi->dbg_ctx,