Re: [PATCH] ubi: remove dead code in validate_vid_hdr()

2020-12-20 Thread Richard Weinberger
On Sat, Dec 19, 2020 at 1:52 PM Jubin Zhong wrote: > > data_size is already checked against zero when vol_type matches > UBI_VID_STATIC. Remove the following dead code. > > Signed-off-by: Jubin Zhong > --- > drivers/mtd/ubi/io.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) > > d

[PATCH] ubi: remove dead code in validate_vid_hdr()

2020-12-19 Thread Jubin Zhong
data_size is already checked against zero when vol_type matches UBI_VID_STATIC. Remove the following dead code. Signed-off-by: Jubin Zhong --- drivers/mtd/ubi/io.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c index 2f3312c.