diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-08-23 12:44:20 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-08-23 16:35:50 +0200 |
commit | c0b3dda7ed4d7f08b6a39ff8b35895780a68e384 (patch) | |
tree | 5470241fcdb7c5ff69337680c1be9486cba5d1c5 /drivers/block/skd_main.c | |
parent | skd: Remove driver version information (diff) | |
download | linux-c0b3dda7ed4d7f08b6a39ff8b35895780a68e384.tar.xz linux-c0b3dda7ed4d7f08b6a39ff8b35895780a68e384.zip |
skd: Uninitialized variable in skd_isr_completion_posted()
Someone got too agressive about removing initializations and
accidentally removed the "rc = 0;" which is required.
Fixes: c830da8cbc7b ("skd: Remove superfluous initializations from skd_isr_completion_posted()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/skd_main.c')
-rw-r--r-- | drivers/block/skd_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c index 9b99081a623c..35938ee0651a 100644 --- a/drivers/block/skd_main.c +++ b/drivers/block/skd_main.c @@ -1499,7 +1499,7 @@ static int skd_isr_completion_posted(struct skd_device *skdev, u8 cmp_status; u8 cmp_cycle; u32 cmp_bytes; - int rc; + int rc = 0; int processed = 0; lockdep_assert_held(&skdev->lock); |