Skip to content

Commit 6e5133c

Browse files
Artem BityutskiyArtem Bityutskiy
authored andcommitted
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>
1 parent 3efe509 commit 6e5133c

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎drivers/mtd/ubi/vmt.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -790,11 +790,6 @@ static int paranoid_check_volume(struct ubi_device *ubi, int vol_id)
790790
goto fail;
791791
}
792792

793-
if (!vol->name) {
794-
ubi_err("NULL volume name");
795-
goto fail;
796-
}
797-
798793
n = strnlen(vol->name, vol->name_len + 1);
799794
if (n != vol->name_len) {
800795
ubi_err("bad name_len %lld", n);

0 commit comments

Comments
 (0)