diff options
| -rw-r--r-- | drivers/mtd/ubi/cdev.c | 3 | ||||
| -rw-r--r-- | drivers/mtd/ubi/debug.h | 10 | ||||
| -rw-r--r-- | drivers/mtd/ubi/io.c | 2 |
3 files changed, 8 insertions, 7 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) |
diff --git a/drivers/mtd/ubi/debug.h b/drivers/mtd/ubi/debug.h index 78e914d23ece..13777e5beac9 100644 --- a/drivers/mtd/ubi/debug.h +++ b/drivers/mtd/ubi/debug.h | |||
| @@ -27,11 +27,11 @@ | |||
| 27 | #define dbg_err(fmt, ...) ubi_err(fmt, ##__VA_ARGS__) | 27 | #define dbg_err(fmt, ...) ubi_err(fmt, ##__VA_ARGS__) |
| 28 | 28 | ||
| 29 | #define ubi_assert(expr) do { \ | 29 | #define ubi_assert(expr) do { \ |
| 30 | if (unlikely(!(expr))) { \ | 30 | if (unlikely(!(expr))) { \ |
| 31 | printk(KERN_CRIT "UBI assert failed in %s at %u (pid %d)\n", \ | 31 | printk(KERN_CRIT "UBI assert failed in %s at %u (pid %d)\n", \ |
| 32 | __func__, __LINE__, current->pid); \ | 32 | __func__, __LINE__, current->pid); \ |
| 33 | ubi_dbg_dump_stack(); \ | 33 | ubi_dbg_dump_stack(); \ |
| 34 | } \ | 34 | } \ |
| 35 | } while (0) | 35 | } while (0) |
| 36 | 36 | ||
| 37 | #define dbg_msg(fmt, ...) \ | 37 | #define dbg_msg(fmt, ...) \ |
diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c index f60f700256f6..a74118c05745 100644 --- a/drivers/mtd/ubi/io.c +++ b/drivers/mtd/ubi/io.c | |||
| @@ -1034,7 +1034,7 @@ int ubi_io_write_vid_hdr(struct ubi_device *ubi, int pnum, | |||
| 1034 | 1034 | ||
| 1035 | err = paranoid_check_peb_ec_hdr(ubi, pnum); | 1035 | err = paranoid_check_peb_ec_hdr(ubi, pnum); |
| 1036 | if (err) | 1036 | if (err) |
| 1037 | return err > 0 ? -EINVAL: err; | 1037 | return err > 0 ? -EINVAL : err; |
| 1038 | 1038 | ||
| 1039 | vid_hdr->magic = cpu_to_be32(UBI_VID_HDR_MAGIC); | 1039 | vid_hdr->magic = cpu_to_be32(UBI_VID_HDR_MAGIC); |
| 1040 | vid_hdr->version = UBI_VERSION; | 1040 | vid_hdr->version = UBI_VERSION; |
