diff options
Diffstat (limited to 'drivers/mtd/ubi/cdev.c')
-rw-r--r-- | drivers/mtd/ubi/cdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c index b30a0b83d7f1..98cf31ed0814 100644 --- a/drivers/mtd/ubi/cdev.c +++ b/drivers/mtd/ubi/cdev.c | |||
@@ -721,7 +721,8 @@ static int rename_volumes(struct ubi_device *ubi, | |||
721 | * It seems we need to remove volume with name @re->new_name, | 721 | * It seems we need to remove volume with name @re->new_name, |
722 | * if it exists. | 722 | * if it exists. |
723 | */ | 723 | */ |
724 | desc = ubi_open_volume_nm(ubi->ubi_num, re->new_name, UBI_EXCLUSIVE); | 724 | desc = ubi_open_volume_nm(ubi->ubi_num, re->new_name, |
725 | UBI_EXCLUSIVE); | ||
725 | if (IS_ERR(desc)) { | 726 | if (IS_ERR(desc)) { |
726 | err = PTR_ERR(desc); | 727 | err = PTR_ERR(desc); |
727 | if (err == -ENODEV) | 728 | if (err == -ENODEV) |