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;