Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2321
b: refs/heads/master
c: 4a0c20b
h: refs/heads/master
i:
  2319: 2e1823f
v: v3
  • Loading branch information
Dmitry Torokhov authored and Greg Kroah-Hartman committed Jun 20, 2005
1 parent b1f497b commit 3cb7533
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 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: c76d0abd07a9c9cf72bbb5b641e1e97f92ea8f3e
refs/heads/master: 4a0c20bf8c0fe2116f8fd7d3da6122bf8a01f026
4 changes: 2 additions & 2 deletions trunk/drivers/base/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ drv_attr_show(struct kobject * kobj, struct attribute * attr, char * buf)
{
struct driver_attribute * drv_attr = to_drv_attr(attr);
struct device_driver * drv = to_driver(kobj);
ssize_t ret = 0;
ssize_t ret = -EIO;

if (drv_attr->show)
ret = drv_attr->show(drv, buf);
Expand All @@ -49,7 +49,7 @@ drv_attr_store(struct kobject * kobj, struct attribute * attr,
{
struct driver_attribute * drv_attr = to_drv_attr(attr);
struct device_driver * drv = to_driver(kobj);
ssize_t ret = 0;
ssize_t ret = -EIO;

if (drv_attr->store)
ret = drv_attr->store(drv, buf, count);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/base/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class_attr_show(struct kobject * kobj, struct attribute * attr, char * buf)
{
struct class_attribute * class_attr = to_class_attr(attr);
struct class * dc = to_class(kobj);
ssize_t ret = 0;
ssize_t ret = -EIO;

if (class_attr->show)
ret = class_attr->show(dc, buf);
Expand All @@ -39,7 +39,7 @@ class_attr_store(struct kobject * kobj, struct attribute * attr,
{
struct class_attribute * class_attr = to_class_attr(attr);
struct class * dc = to_class(kobj);
ssize_t ret = 0;
ssize_t ret = -EIO;

if (class_attr->store)
ret = class_attr->store(dc, buf, count);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dev_attr_show(struct kobject * kobj, struct attribute * attr, char * buf)
{
struct device_attribute * dev_attr = to_dev_attr(attr);
struct device * dev = to_dev(kobj);
ssize_t ret = 0;
ssize_t ret = -EIO;

if (dev_attr->show)
ret = dev_attr->show(dev, buf);
Expand All @@ -49,7 +49,7 @@ dev_attr_store(struct kobject * kobj, struct attribute * attr,
{
struct device_attribute * dev_attr = to_dev_attr(attr);
struct device * dev = to_dev(kobj);
ssize_t ret = 0;
ssize_t ret = -EIO;

if (dev_attr->store)
ret = dev_attr->store(dev, buf, count);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/base/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ sysdev_show(struct kobject * kobj, struct attribute * attr, char * buffer)

if (sysdev_attr->show)
return sysdev_attr->show(sysdev, buffer);
return 0;
return -EIO;
}


Expand All @@ -50,7 +50,7 @@ sysdev_store(struct kobject * kobj, struct attribute * attr,

if (sysdev_attr->store)
return sysdev_attr->store(sysdev, buffer, count);
return 0;
return -EIO;
}

static struct sysfs_ops sysfs_ops = {
Expand Down

0 comments on commit 3cb7533

Please sign in to comment.