Skip to contentSkip to conversation

drivers: scsi: Remove null check on sdkp

PATCH In review Tapasweni Pathak 2 participants 2 messages Mar 6, 2015 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: scsi: Remove null check on sdkp

Remove null check on sdkp as it won't be null at this line.

Acked-by; Julia Lawall <[email protected]>

---
 drivers/scsi/sd_dif.c |    3 ---
 1 file changed, 3 deletions(-)
drivers/scsi/sd_dif.c +0 -3
index 14c7d42..2190639 100644
@@ -77,9 +77,6 @@ void sd_dif_config_host(struct scsi_disk *sdkp)
 
 		disk->integrity->flags |= BLK_INTEGRITY_DEVICE_CAPABLE;
 
-		if (!sdkp)
-			return;
-
 		if (type == SD_DIF_TYPE3_PROTECTION)
 			disk->integrity->tag_size = sizeof(u16) + sizeof(u32);
 		else

--
1.7.9.5

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Tapasweni" == Tapasweni Pathak <[email protected]> writes:

Tapasweni> Remove null check on sdkp as it won't be null at this line.

Thanks for the heads up. It's actually a merge snafu. The check is supposed to be if (!sdkp->ATO). I already have a patch in my queue to fix this.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering