Skip to content

Commit c0b3dda

Browse files
Dan Carpenteraxboe
authored andcommitted
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: c830da8 ("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>
1 parent 69a84ba commit c0b3dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/block/skd_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ static int skd_isr_completion_posted(struct skd_device *skdev,
14991499
u8 cmp_status;
15001500
u8 cmp_cycle;
15011501
u32 cmp_bytes;
1502-
int rc;
1502+
int rc = 0;
15031503
int processed = 0;
15041504

15051505
lockdep_assert_held(&skdev->lock);

0 commit comments

Comments
 (0)