rk_fb: bmp_helper: remove unalign 24bit bmp check
authorMark Yao <mark.yao@rock-chips.com>
Tue, 30 Dec 2014 01:36:32 +0000 (09:36 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Tue, 30 Dec 2014 01:39:01 +0000 (09:39 +0800)
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/video/rockchip/bmp_helper.c

index 413b0d342d3a93b9a857e503a1f2e6214c9033c8..bf7186f31f9b7ce087588f9a9a0289e9194e295f 100755 (executable)
@@ -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;