]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c474a80a65ce087faa31073e4213db2a5287b30
tree47c56c0d4124326ebad3b90d6d89d5f56a66e8de
parentb282607df7668b74dacffe3bae2cf79eff9921b8
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