ubi: remove dead code in validate_vid_hdr()
authorJubin Zhong <zhongjubin@huawei.com>
Sat, 19 Dec 2020 12:49:10 +0000 (20:49 +0800)
committerRichard Weinberger <richard@nod.at>
Fri, 12 Feb 2021 20:53:22 +0000 (21:53 +0100)
commitcf0838dfa3f9337229bbb7837c24b985539bf37d
tree47c56c0d4124326ebad3b90d6d89d5f56a66e8de
parent92bf22614b21a2706f4993b278017e437f7785b3
ubi: remove dead code in validate_vid_hdr()

data_size is already checked against zero when vol_type matches
UBI_VID_STATIC. Remove the following dead code.

Signed-off-by: Jubin Zhong <zhongjubin@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/io.c