Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42027
b: refs/heads/master
c: 645c98c
h: refs/heads/master
i:
  42025: e18d351
  42023: ca7e74a
v: v3
  • Loading branch information
Horst Hummel authored and Martin Schwidefsky committed Dec 4, 2006
1 parent 747c05b commit aa92471
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 29145a6c8cda3238049937612365e80b53c3f266
refs/heads/master: 645c98c8b6c09eae58ac2f97e0ade6ced4d6443f
9 changes: 5 additions & 4 deletions trunk/drivers/s390/block/dasd_devmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -877,12 +877,13 @@ dasd_eer_store(struct device *dev, struct device_attribute *attr,
if (((endp + 1) < (buf + count)) || (val > 1))
return -EINVAL;

rc = count;
if (val)
if (val) {
rc = dasd_eer_enable(devmap->device);
else
if (rc)
return rc;
} else
dasd_eer_disable(devmap->device);
return rc;
return count;
}

static DEVICE_ATTR(eer_enabled, 0644, dasd_eer_show, dasd_eer_store);
Expand Down

0 comments on commit aa92471

Please sign in to comment.