[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1650536693-13089-1-git-send-email-baihaowen@meizu.com>
Date: Thu, 21 Apr 2022 18:24:53 +0800
From: Haowen Bai <baihaowen@...zu.com>
To: Saurav Kashyap <skashyap@...vell.com>,
Javed Hasan <jhasan@...vell.com>,
<GR-QLogic-Storage-Upstream@...vell.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>
CC: Haowen Bai <baihaowen@...zu.com>, <linux-scsi@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH] scsi: qedf: Remove useless code
buf msg only memset but no use at all, so we drop it.
Signed-off-by: Haowen Bai <baihaowen@...zu.com>
---
drivers/scsi/qedf/qedf_attr.c | 2 --
1 file changed, 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);
--
2.7.4
Powered by blists - more mailing lists