scsi: hpsa: remove an unecessary NULL check
PATCH 1/1 scsi: hpsa: remove an unecessary NULL check
device->scsi3addr[] is an array, not a pointer, so it can't be NULL. I've removed the check.
Signed-off-by Dan Carpenter <[email protected]>
drivers/scsi/hpsa.c +0 -2
@@ -8223,8 +8223,6 @@ static void hpsa_set_ioaccel_status(struct ctlr_info *h)if (!device)continue ; -if (!device->scsi3addr) -continue ;if (!hpsa_vpd_page_supported (h, device->scsi3addr,HPSA_VPD_LV_IOACCEL_STATUS ))continue ;
Quoted 3 lines
device->scsi3addr[] is an array, not a pointer, so it can't be NULL. I've removed the check.
Microsemi folks, please review. Thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedDan,
Quoted 2 lines
device->scsi3addr[] is an array, not a pointer, so it can't be NULL. I've removed the check.
Applied to 4.16/scsi-queue. Thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering