lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150306023649.GA6316@kt-Inspiron-3542>
Date:	Fri, 6 Mar 2015 08:06:49 +0530
From:	Tapasweni Pathak <tapaswenipathak@...il.com>
To:	JBottomley@...allels.com, linux-scsi@...r.kernel.org,
	linux-kernel@...r.kernel.org
Cc:	julia.lawall@...6.fr, tapaswenipathak@...il.com
Subject: [PATCH] drivers: scsi: Remove null check on sdkp

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

Signed-off-by: Tapasweni Pathak <tapaswenipathak@...il.com>
Acked-by; Julia Lawall <julia.lawall@...6.fr>
---
 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-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ