diff options
| -rw-r--r-- | drivers/mtd/ubi/vmt.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mtd/ubi/vmt.c b/drivers/mtd/ubi/vmt.c index b79e0dea3632..366eb70219a6 100644 --- a/drivers/mtd/ubi/vmt.c +++ b/drivers/mtd/ubi/vmt.c | |||
| @@ -790,11 +790,6 @@ static int paranoid_check_volume(struct ubi_device *ubi, int vol_id) | |||
| 790 | goto fail; | 790 | goto fail; |
| 791 | } | 791 | } |
| 792 | 792 | ||
| 793 | if (!vol->name) { | ||
| 794 | ubi_err("NULL volume name"); | ||
| 795 | goto fail; | ||
| 796 | } | ||
| 797 | |||
| 798 | n = strnlen(vol->name, vol->name_len + 1); | 793 | n = strnlen(vol->name, vol->name_len + 1); |
| 799 | if (n != vol->name_len) { | 794 | if (n != vol->name_len) { |
| 800 | ubi_err("bad name_len %lld", n); | 795 | ubi_err("bad name_len %lld", n); |
