From: James Bottomley <jbottomley@parallels.com>
To: "fabf@skynet.be" <fabf@skynet.be>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>
Subject: Re: [PATCH 1/1 RESEND] drivers/scsi/sd.c: remove positive test on unsigned value
Date: Sat, 10 May 2014 15:04:50 +0000 [thread overview]
Message-ID: <1399734290.2528.0.camel@dabdike.int.hansenpartnership.com> (raw)
In-Reply-To: <20140510124958.b231a1d64d12ecdf97aff393@skynet.be>
On Sat, 2014-05-10 at 12:49 +0200, Fabian Frederick wrote:
> val is unsigned.
Please send to linux-scsi@vger.kernel.org ... this is one of Martin's I
think.
James
> Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
> ---
> drivers/scsi/sd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
> index efcbcd1..b54d4f8 100644
> --- a/drivers/scsi/sd.c
> +++ b/drivers/scsi/sd.c
> @@ -296,7 +296,7 @@ protection_type_store(struct device *dev, struct device_attribute *attr,
> if (err)
> return err;
>
> - if (val >= 0 && val <= SD_DIF_TYPE3_PROTECTION)
> + if (val <= SD_DIF_TYPE3_PROTECTION)
> sdkp->protection_type = val;
>
> return count;
prev parent reply other threads:[~2014-05-10 15:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-10 10:49 Fabian Frederick
2014-05-10 15:04 ` James Bottomley [this message]
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=1399734290.2528.0.camel@dabdike.int.hansenpartnership.com \
--to=jbottomley@parallels.com \
--cc=akpm@linux-foundation.org \
--cc=fabf@skynet.be \
--cc=linux-kernel@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®