[PATCH] drivers: scsi: Remove null check on sdkp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Tapasweni Pathak <tapaswenipathak@xxxxxxxxx>
Acked-by; Julia Lawall <julia.lawall@xxxxxxx>
---
 drivers/scsi/sd_dif.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/scsi/sd_dif.c b/drivers/scsi/sd_dif.c
index 14c7d42..2190639 100644
--- a/drivers/scsi/sd_dif.c
+++ b/drivers/scsi/sd_dif.c
@@ -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

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux