The code slice in the 'v4l2_fmt_to_pxp_fmt()' function:
"
else if (v4l2_pix_fmt == V4L2_PIX_FMT_RGB555)
pxp_fmt = PXP_PIX_FMT_RGB555;
"
appears twice continuously. And the second code slice
will become dead code which is never executed. So
remove the second one.
Signed-off-by: Fancy Fang <chen.fang@freescale.com>
pxp_fmt = PXP_PIX_FMT_RGB565;
else if (v4l2_pix_fmt == V4L2_PIX_FMT_RGB555)
pxp_fmt = PXP_PIX_FMT_RGB555;
- else if (v4l2_pix_fmt == V4L2_PIX_FMT_RGB555)
- pxp_fmt = PXP_PIX_FMT_RGB555;
else if (v4l2_pix_fmt == V4L2_PIX_FMT_YUV420)
pxp_fmt = PXP_PIX_FMT_YUV420P;
else if (v4l2_pix_fmt == V4L2_PIX_FMT_YUV422P)