forked from Minki/linux
scsi: megaraid_sas: Remove unnecessary memset()
Remove memset() of pd_list and ld_ids in megasas_get_device_list(). These lists will be cleared by megasas_host_device_list_query(), megasas_get_pd_list(), and megasas_ld_list_query(). Link: https://lore.kernel.org/r/1663145283-4872-5-git-send-email-kanie@linux.alibaba.com Acked-by: Sumit Saxena <sumit.saxena@broadcom.com> Signed-off-by: Guixin Liu <kanie@linux.alibaba.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
17883cd59f
commit
ad40d51992
@ -5876,10 +5876,6 @@ fallback:
|
||||
static
|
||||
int megasas_get_device_list(struct megasas_instance *instance)
|
||||
{
|
||||
memset(instance->pd_list, 0,
|
||||
(MEGASAS_MAX_PD * sizeof(struct megasas_pd_list)));
|
||||
memset(instance->ld_ids, 0xff, MEGASAS_MAX_LD_IDS);
|
||||
|
||||
if (instance->enable_fw_dev_list) {
|
||||
if (megasas_host_device_list_query(instance, true))
|
||||
return FAILED;
|
||||
|
Loading…
Reference in New Issue
Block a user