Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0b3dda7 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jens Axboe
Browse files

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: c830da8c ("skd: Remove superfluous initializations from skd_isr_completion_posted()")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 69a84ba2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);