rk_fb: bmp_helper: remove unalign 24bit bmp check

Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
Mark Yao
2014-12-30 09:36:32 +08:00
parent 4e2a14cac0
commit e2da965145

View File

@@ -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;