summaryrefslogtreecommitdiff
path: root/drivers/scsi/qedf
diff options
context:
space:
mode:
authorHaowen Bai <baihaowen@meizu.com>2022-04-21 13:24:53 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2022-04-26 06:36:31 +0300
commit21faafff6abbbe79fe56e3c7049514df08a9e66e (patch)
tree1d2f8a53ac71eafb0add2e16988f6a6df6f0451e /drivers/scsi/qedf
parentbda57fede0a6211f9c3423e8b972caffbe623ee0 (diff)
downloadlinux-21faafff6abbbe79fe56e3c7049514df08a9e66e.tar.xz
scsi: qedf: Remove unnecessary code
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>
Diffstat (limited to 'drivers/scsi/qedf')
-rw-r--r--drivers/scsi/qedf/qedf_attr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/qedf/qedf_attr.c b/drivers/scsi/qedf/qedf_attr.c
index fdc66d294813..8d8c760eee43 100644
--- a/drivers/scsi/qedf/qedf_attr.c
+++ b/drivers/scsi/qedf/qedf_attr.c
@@ -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);