mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
rk_fb: bmp_helper: remove unalign 24bit bmp check
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user