From: Dan Carpenter Date: Wed, 23 Aug 2017 10:44:20 +0000 (+0300) Subject: skd: Uninitialized variable in skd_isr_completion_posted() X-Git-Tag: v4.14-rc1~81^2~70 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=c0b3dda7ed4d7f08b6a39ff8b35895780a68e384;p=linux-2.6-block.git 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 Signed-off-by: Jens Axboe --- 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);