1
0
Fork 0

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: c830da8cbc ("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>
hifive-unleashed-5.1
Dan Carpenter 2017-08-23 13:44:20 +03:00 committed by Jens Axboe
parent 69a84ba216
commit c0b3dda7ed
1 changed files with 1 additions and 1 deletions

View File

@ -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);