diff options
author | Rickard Strandqvist | 2014-06-07 00:37:26 +0200 |
---|---|---|
committer | Jens Axboe | 2014-06-09 03:51:31 +0200 |
commit | de83953f9d710f84c4a162a1d498a73475c07d98 (patch) | |
tree | a3b6b7034a9f9a8376191376d92df5a402b0aca9 /block | |
parent | mtip32xx: minor performance enhancements (diff) | |
download | kernel-qcow2-linux-de83953f9d710f84c4a162a1d498a73475c07d98.tar.gz kernel-qcow2-linux-de83953f9d710f84c4a162a1d498a73475c07d98.tar.xz kernel-qcow2-linux-de83953f9d710f84c4a162a1d498a73475c07d98.zip |
block: blk-exec.c: Cleaning up local variable address returnd
Address of local variable assigned to a function parameter
This was partly found using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-exec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block/blk-exec.c b/block/blk-exec.c index dbf4502b1d67..f4d27b12c90b 100644 --- a/block/blk-exec.c +++ b/block/blk-exec.c @@ -132,6 +132,11 @@ int blk_execute_rq(struct request_queue *q, struct gendisk *bd_disk, if (rq->errors) err = -EIO; + if (rq->sense == sense) { + rq->sense = NULL; + rq->sense_len = 0; + } + return err; } EXPORT_SYMBOL(blk_execute_rq); |