From: Tapasweni Pathak <tapaswenipathak@gmail.com>
To: JBottomley@parallels.com, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: julia.lawall@lip6.fr, tapaswenipathak@gmail.com
Subject: [PATCH] drivers: scsi: Remove null check on sdkp
Date: Fri, 6 Mar 2015 08:06:49 +0530 [thread overview]
Message-ID: <20150306023649.GA6316@kt-Inspiron-3542> (raw)
Remove null check on sdkp as it won't be null at this line.
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Acked-by; Julia Lawall <julia.lawall@lip6.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
next reply other threads:[~2015-03-06 2:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-06 2:36 Tapasweni Pathak [this message]
2015-03-06 12:12 ` Martin K. Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150306023649.GA6316@kt-Inspiron-3542 \
--to=tapaswenipathak@gmail.com \
--cc=JBottomley@parallels.com \
--cc=julia.lawall@lip6.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®