From: Pierre Morel Date: Mon, 26 Oct 2015 09:45:04 +0000 (+0100) Subject: s390/css: unneeded initialization in for_each_subchannel X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8f0ba83178d4f3630687296c45d593326ec2d63d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git s390/css: unneeded initialization in for_each_subchannel The ret variable is always set by the fn function. There is no need to initialize it. Signed-off-by: Pierre Morel Reviewed-By: Sascha Silbe Acked-by: Cornelia Huck Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c index 25b4ee1fb2f4..2ee3053bdc12 100644 --- 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);