From: Mark Yao Date: Tue, 30 Dec 2014 01:36:32 +0000 (+0800) Subject: rk_fb: bmp_helper: remove unalign 24bit bmp check X-Git-Tag: firefly_0821_release~4355 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e2da9651456fbb9699182e197658d41763f8cbdc;p=firefly-linux-kernel-4.4.55.git rk_fb: bmp_helper: remove unalign 24bit bmp check Signed-off-by: Mark Yao --- 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;