aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/s390/cio/ccwgroup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/cio/ccwgroup.c b/drivers/s390/cio/ccwgroup.c
index 731470e68493..9c8e117c7d3a 100644
--- a/drivers/s390/cio/ccwgroup.c
+++ b/drivers/s390/cio/ccwgroup.c
@@ -68,7 +68,7 @@ static void __ccwgroup_remove_cdev_refs(struct ccwgroup_device *gdev)
68static int ccwgroup_set_online(struct ccwgroup_device *gdev) 68static int ccwgroup_set_online(struct ccwgroup_device *gdev)
69{ 69{
70 struct ccwgroup_driver *gdrv = to_ccwgroupdrv(gdev->dev.driver); 70 struct ccwgroup_driver *gdrv = to_ccwgroupdrv(gdev->dev.driver);
71 int ret = 0; 71 int ret = -EINVAL;
72 72
73 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) 73 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0)
74 return -EAGAIN; 74 return -EAGAIN;
@@ -88,7 +88,7 @@ out:
88static int ccwgroup_set_offline(struct ccwgroup_device *gdev) 88static int ccwgroup_set_offline(struct ccwgroup_device *gdev)
89{ 89{
90 struct ccwgroup_driver *gdrv = to_ccwgroupdrv(gdev->dev.driver); 90 struct ccwgroup_driver *gdrv = to_ccwgroupdrv(gdev->dev.driver);
91 int ret = 0; 91 int ret = -EINVAL;
92 92
93 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) 93 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0)
94 return -EAGAIN; 94 return -EAGAIN;