From: Haowen Bai Date: Thu, 21 Apr 2022 09:24:50 +0000 (+0800) Subject: scsi: qla4xxx: Drop redundant memset() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bda57fede0a6211f9c3423e8b972caffbe623ee0;p=linux.git 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 Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 3f6cb2a5c2c28..9e849f6b0d0f7 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -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: