diff options
Diffstat (limited to 'drivers/dax/bus.c')
-rw-r--r-- | drivers/dax/bus.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dax/bus.c b/drivers/dax/bus.c index f24b67c64d..3ef9550bd2 100644 --- a/drivers/dax/bus.c +++ b/drivers/dax/bus.c @@ -792,7 +792,7 @@ static const struct attribute_group *dax_mapping_attribute_groups[] = { NULL, }; -static struct device_type dax_mapping_type = { +static const struct device_type dax_mapping_type = { .release = dax_mapping_release, .groups = dax_mapping_attribute_groups, }; @@ -1178,7 +1178,6 @@ static ssize_t mapping_store(struct device *dev, struct device_attribute *attr, if (rc) return rc; - rc = -ENXIO; rc = down_write_killable(&dax_region_rwsem); if (rc) return rc; |