Commit a7602074 authored by Andrew Morton's avatar Andrew Morton Committed by James Toy

drivers/scsi/st.c: In function 'st_set_options':

drivers/scsi/st.c:2283: warning: suggest parentheses around && within ||

Cc: James E.J. Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Roel Kluin <roel.kluin@gmail.com>
Cc: Willem Riede <osst@riede.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 5aabc237
...@@ -2280,7 +2280,8 @@ static int st_set_options(struct scsi_tape *STp, long options) ...@@ -2280,7 +2280,8 @@ static int st_set_options(struct scsi_tape *STp, long options)
} else if (code == MT_ST_SET_CLN) { } else if (code == MT_ST_SET_CLN) {
value = (options & ~MT_ST_OPTIONS) & 0xff; value = (options & ~MT_ST_OPTIONS) & 0xff;
if (value != 0 && if (value != 0 &&
value < EXTENDED_SENSE_START || value >= SCSI_SENSE_BUFFERSIZE) (value < EXTENDED_SENSE_START ||
value >= SCSI_SENSE_BUFFERSIZE))
return (-EINVAL); return (-EINVAL);
STp->cln_mode = value; STp->cln_mode = value;
STp->cln_sense_mask = (options >> 8) & 0xff; STp->cln_sense_mask = (options >> 8) & 0xff;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment