Skip to content

Commit ad40d51

Browse files
guixinliu1995martinkpetersen
authored andcommitted
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/[email protected] Acked-by: Sumit Saxena <[email protected]> Signed-off-by: Guixin Liu <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 17883cd commit ad40d51

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/scsi/megaraid/megaraid_sas_base.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5876,10 +5876,6 @@ static void megasas_setup_reply_map(struct megasas_instance *instance)
58765876
static
58775877
int megasas_get_device_list(struct megasas_instance *instance)
58785878
{
5879-
memset(instance->pd_list, 0,
5880-
(MEGASAS_MAX_PD * sizeof(struct megasas_pd_list)));
5881-
memset(instance->ld_ids, 0xff, MEGASAS_MAX_LD_IDS);
5882-
58835879
if (instance->enable_fw_dev_list) {
58845880
if (megasas_host_device_list_query(instance, true))
58855881
return FAILED;

0 commit comments

Comments
 (0)