Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343394
b: refs/heads/master
c: cff9710
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Nov 23, 2012
1 parent 009c281 commit 66e8b70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ce6a04ac1b759beafc88dbc443ae5da867579eeb
refs/heads/master: cff971026d7c19f67f9312e753bb06f18b6cdae7
4 changes: 2 additions & 2 deletions trunk/drivers/s390/cio/ccwgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static void __ccwgroup_remove_cdev_refs(struct ccwgroup_device *gdev)
static int ccwgroup_set_online(struct ccwgroup_device *gdev)
{
struct ccwgroup_driver *gdrv = to_ccwgroupdrv(gdev->dev.driver);
int ret = 0;
int ret = -EINVAL;

if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0)
return -EAGAIN;
Expand All @@ -88,7 +88,7 @@ static int ccwgroup_set_online(struct ccwgroup_device *gdev)
static int ccwgroup_set_offline(struct ccwgroup_device *gdev)
{
struct ccwgroup_driver *gdrv = to_ccwgroupdrv(gdev->dev.driver);
int ret = 0;
int ret = -EINVAL;

if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0)
return -EAGAIN;
Expand Down

0 comments on commit 66e8b70

Please sign in to comment.