diff options
author | Johannes Thumshirn <jthumshirn@suse.de> | 2016-11-03 05:38:54 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-11-03 09:56:14 -0400 |
commit | 46f3cc176210b2db5db89d9c0e62796cad7e3cdc (patch) | |
tree | 5a0def03929392caf34a59c08aa7c7b5fe0b2e18 | |
parent | a6eaa8849f92a40f8894d6d0dcab2c16243aaf20 (diff) |
block: drop q argument from bsg_validate_sgv4_hdr
bsg_validate_sgv4_hdr() doesn't care about the request_queue, so drop it
from it's arguments.
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r-- | block/bsg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/bsg.c b/block/bsg.c index d214e929ce18..8a05a404ae70 100644 --- a/block/bsg.c +++ b/block/bsg.c | |||
@@ -176,7 +176,7 @@ static int blk_fill_sgv4_hdr_rq(struct request_queue *q, struct request *rq, | |||
176 | * Check if sg_io_v4 from user is allowed and valid | 176 | * Check if sg_io_v4 from user is allowed and valid |
177 | */ | 177 | */ |
178 | static int | 178 | static int |
179 | bsg_validate_sgv4_hdr(struct request_queue *q, struct sg_io_v4 *hdr, int *rw) | 179 | bsg_validate_sgv4_hdr(struct sg_io_v4 *hdr, int *rw) |
180 | { | 180 | { |
181 | int ret = 0; | 181 | int ret = 0; |
182 | 182 | ||
@@ -226,7 +226,7 @@ bsg_map_hdr(struct bsg_device *bd, struct sg_io_v4 *hdr, fmode_t has_write_perm, | |||
226 | hdr->dout_xfer_len, (unsigned long long) hdr->din_xferp, | 226 | hdr->dout_xfer_len, (unsigned long long) hdr->din_xferp, |
227 | hdr->din_xfer_len); | 227 | hdr->din_xfer_len); |
228 | 228 | ||
229 | ret = bsg_validate_sgv4_hdr(q, hdr, &rw); | 229 | ret = bsg_validate_sgv4_hdr(hdr, &rw); |
230 | if (ret) | 230 | if (ret) |
231 | return ERR_PTR(ret); | 231 | return ERR_PTR(ret); |
232 | 232 | ||