Skip to content

Commit 3a66ae5

Browse files
Stanley Chumartinkpetersen
authored andcommitted
scsi: ufs: Remove unnecessary memset for dev_info
The whole UFS host instance has been zero-initialized by scsi_host_alloc(), thus UFS driver does not need to clear "dev_info" member specifically in ufshcd_device_params_init(). Simply remove the unnecessary code. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Avri Altman <[email protected]> Reviewed-by: Asutosh Das <[email protected]> Signed-off-by: Stanley Chu <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 3be60b5 commit 3a66ae5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/scsi/ufs/ufshcd.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7267,9 +7267,6 @@ static int ufshcd_device_params_init(struct ufs_hba *hba)
72677267
bool flag;
72687268
int ret;
72697269

7270-
/* Clear any previous UFS device information */
7271-
memset(&hba->dev_info, 0, sizeof(hba->dev_info));
7272-
72737270
/* Init check for device descriptor sizes */
72747271
ufshcd_init_desc_sizes(hba);
72757272

0 commit comments

Comments
 (0)