From e2da9651456fbb9699182e197658d41763f8cbdc Mon Sep 17 00:00:00 2001 From: Mark Yao Date: Tue, 30 Dec 2014 09:36:32 +0800 Subject: [PATCH] rk_fb: bmp_helper: remove unalign 24bit bmp check Signed-off-by: Mark Yao --- drivers/video/rockchip/bmp_helper.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/video/rockchip/bmp_helper.c b/drivers/video/rockchip/bmp_helper.c index 413b0d342d3a..bf7186f31f9b 100755 --- a/drivers/video/rockchip/bmp_helper.c +++ b/drivers/video/rockchip/bmp_helper.c @@ -379,11 +379,6 @@ int bmpdecoder(void *bmp_addr, void *pdst, int *width, int *height, int *bits) pr_info("unsupport bit=%d now\n", infoheader.bitcount); break; case 24: - if (size % 3 != 0) { - pr_info("wrong bmp file with unalign size\n"); - - return -EINVAL; - } if (flip) src += (*width) * (*height - 1) * 3; -- 2.34.1