forked from Minki/linux
scsi: qla4xxx: Drop redundant memset()
The region set by the call to memset() is immediately overwritten by the subsequent call to memcpy(). Drop redundant memset(). Link: https://lore.kernel.org/r/1650533091-28815-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
391b8dac55
commit
bda57fede0
@ -671,7 +671,6 @@ static void qla4xxx_create_chap_list(struct scsi_qla_host *ha)
|
||||
goto exit_chap_list;
|
||||
}
|
||||
|
||||
memset(ha->chap_list, 0, chap_size);
|
||||
memcpy(ha->chap_list, chap_flash_data, chap_size);
|
||||
|
||||
exit_chap_list:
|
||||
|
Loading…
Reference in New Issue
Block a user