Skip to content

Commit

Permalink
skd: Uninitialized variable in skd_isr_completion_posted()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Jens Axboe committed Aug 23, 2017
1 parent 69a84ba commit c0b3dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/skd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c0b3dda

Please sign in to comment.