projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69a84ba
)
skd: Uninitialized variable in skd_isr_completion_posted()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 23 Aug 2017 10:44:20 +0000
(13:44 +0300)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 23 Aug 2017 14:35:50 +0000
(08:35 -0600)
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 <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/skd_main.c
patch
|
blob
|
history
diff --git
a/drivers/block/skd_main.c
b/drivers/block/skd_main.c
index 9b99081a623c46c8a75d8fead7f85f87343c5c3b..35938ee0651a2baaad269185d83c5c501c87365e 100644
(file)
--- 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);