]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: qedf: Remove unnecessary code
authorHaowen Bai <baihaowen@meizu.com>
Thu, 21 Apr 2022 10:24:53 +0000 (18:24 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 03:36:31 +0000 (23:36 -0400)
Buffer 'msg' is memset() but never actually used. Drop it.

Link: https://lore.kernel.org/r/1650536693-13089-1-git-send-email-baihaowen@meizu.com
Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_attr.c

index fdc66d2948130858dc990e9fd001b28c5d5a0983..8d8c760eee435ad9018e64440837211109725ff6 100644 (file)
@@ -131,7 +131,6 @@ qedf_sysfs_write_grcdump(struct file *filep, struct kobject *kobj,
        struct qedf_ctx *qedf = NULL;
        long reading;
        int ret = 0;
-       char msg[40];
 
        if (off != 0)
                return ret;
@@ -148,7 +147,6 @@ qedf_sysfs_write_grcdump(struct file *filep, struct kobject *kobj,
                return ret;
        }
 
-       memset(msg, 0, sizeof(msg));
        switch (reading) {
        case 0:
                memset(qedf->grcdump, 0, qedf->grcdump_size);