summaryrefslogtreecommitdiff
path: root/drivers/mtd/ubi/vmt.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-03-25 19:48:59 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-05 12:08:58 +0400
commit6e5133cc757912e7ba2bfbbfb384667707f45ec3 (patch)
tree62ff05e2d236d7c107633fd2e27e2d1155c7088d /drivers/mtd/ubi/vmt.c
parent3efe509070e3d27e6d5dbc4bf8588e9453e9b949 (diff)
downloadlinux-6e5133cc757912e7ba2bfbbfb384667707f45ec3.tar.xz
UBI: do not compare array with NULL
Coverity spotted that UBI debugging code tries to compare an array and NULL, which obviously makes little sense. Kill this check. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/vmt.c')
-rw-r--r--drivers/mtd/ubi/vmt.c5
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)
goto fail;
}
- if (!vol->name) {
- ubi_err("NULL volume name");
- goto fail;
- }
-
n = strnlen(vol->name, vol->name_len + 1);
if (n != vol->name_len) {
ubi_err("bad name_len %lld", n);