mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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>
This commit is contained in:
parent
bda57fede0
commit
21faafff6a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user