projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
295d8fa
)
s390/css: unneeded initialization in for_each_subchannel
author
Pierre Morel
<pmorel@linux.vnet.ibm.com>
Mon, 26 Oct 2015 09:45:04 +0000
(10:45 +0100)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Tue, 3 Nov 2015 13:40:49 +0000
(14:40 +0100)
The ret variable is always set by the fn function.
There is no need to initialize it.
Signed-off-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Reviewed-By: Sascha Silbe <silbe@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/css.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/s390/cio/css.c
b/drivers/s390/cio/css.c
index 25b4ee1fb2f43cad1a2cc3b2e50eebead1da23c0..2ee3053bdc124319abf79a91f3ba07eb66835524 100644
(file)
--- a/
drivers/s390/cio/css.c
+++ b/
drivers/s390/cio/css.c
@@
-44,7
+44,6
@@
for_each_subchannel(int(*fn)(struct subchannel_id, void *), void *data)
int ret;
init_subchannel_id(&schid);
- ret = -ENODEV;
do {
do {
ret = fn(schid, data);