projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[CIFS] Fix build warning
[firefly-linux-kernel-4.4.55.git]
/
block
/
bsg.c
diff --git
a/block/bsg.c
b/block/bsg.c
index 0f63b91d0af6823a67ea3e08598518b474083a48..206060e795da4324732835bf5012afca4ac7d43f 100644
(file)
--- a/
block/bsg.c
+++ b/
block/bsg.c
@@
-218,9
+218,6
@@
bsg_validate_sgv4_hdr(struct request_queue *q, struct sg_io_v4 *hdr, int *rw)
if (hdr->guard != 'Q')
return -EINVAL;
- if (hdr->dout_xfer_len > (q->max_sectors << 9) ||
- hdr->din_xfer_len > (q->max_sectors << 9))
- return -EIO;
switch (hdr->protocol) {
case BSG_PROTOCOL_SCSI: