From: Dan Carpenter Date: Tue, 7 Nov 2017 13:01:32 +0000 (+0300) Subject: scsi: hpsa: remove an unnecessary NULL check X-Git-Tag: v4.16-rc1~140^2~278 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b6c9d54e9b7bd0da85661c7e75f55880b606fe87;p=tomoyo%2Ftomoyo-test1.git scsi: hpsa: remove an unnecessary NULL check device->scsi3addr[] is an array, not a pointer, so it can't be NULL. I've removed the check. [mkp: fixed typo] Signed-off-by: Dan Carpenter Acked-by: Don Brace Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 287e5eb0723f..b0aa5dc1d54c 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -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;