mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
scsi: megaraid_sas: Remove redundant memset() statement
As memset() of scmd->sense_buffer is immediately followed by a memcpy() where scmd->sense_buffer is the destination. The memset() is redundant. Link: https://lore.kernel.org/r/20220505143214.44908-1-harshit.m.mogalapalli@oracle.com Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
bc7896d31a
commit
2f9e9a7b0c
@ -2047,8 +2047,6 @@ map_cmd_status(struct fusion_context *fusion,
|
||||
|
||||
scmd->result = (DID_OK << 16) | ext_status;
|
||||
if (ext_status == SAM_STAT_CHECK_CONDITION) {
|
||||
memset(scmd->sense_buffer, 0,
|
||||
SCSI_SENSE_BUFFERSIZE);
|
||||
memcpy(scmd->sense_buffer, sense,
|
||||
SCSI_SENSE_BUFFERSIZE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user