diff options
author | Haowen Bai <[email protected]> | 2022-04-21 17:24:50 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-04-25 23:33:36 -0400 |
commit | bda57fede0a6211f9c3423e8b972caffbe623ee0 (patch) | |
tree | 6bc0621f781c07405fcbaa9796f07ddb6869a0a9 | |
parent | 391b8dac55770686d33f65ab5e87cfbc5bb3942d (diff) |
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/[email protected]
Signed-off-by: Haowen Bai <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_os.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 3f6cb2a5c2c2..9e849f6b0d0f 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: |