diff options
Diffstat (limited to 'drivers/block/as-iosched.c')
-rw-r--r-- | drivers/block/as-iosched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/as-iosched.c b/drivers/block/as-iosched.c index a9575bb58a5e..638db06de2be 100644 --- a/drivers/block/as-iosched.c +++ b/drivers/block/as-iosched.c | |||
@@ -2044,7 +2044,7 @@ as_attr_show(struct kobject *kobj, struct attribute *attr, char *page) | |||
2044 | struct as_fs_entry *entry = to_as(attr); | 2044 | struct as_fs_entry *entry = to_as(attr); |
2045 | 2045 | ||
2046 | if (!entry->show) | 2046 | if (!entry->show) |
2047 | return 0; | 2047 | return -EIO; |
2048 | 2048 | ||
2049 | return entry->show(e->elevator_data, page); | 2049 | return entry->show(e->elevator_data, page); |
2050 | } | 2050 | } |
@@ -2057,7 +2057,7 @@ as_attr_store(struct kobject *kobj, struct attribute *attr, | |||
2057 | struct as_fs_entry *entry = to_as(attr); | 2057 | struct as_fs_entry *entry = to_as(attr); |
2058 | 2058 | ||
2059 | if (!entry->store) | 2059 | if (!entry->store) |
2060 | return -EINVAL; | 2060 | return -EIO; |
2061 | 2061 | ||
2062 | return entry->store(e->elevator_data, page, length); | 2062 | return entry->store(e->elevator_data, page, length); |
2063 | } | 2063 | } |