Commit d9f4844a authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Mauro Carvalho Chehab

[media] staging: media: davinci_vpfe: drop condition with no effect

As the if and else branch body are identical the condition has no effect and
can be dropped.
Signed-off-by: default avatarNicholas Mc Guire <der.herr@hofr.at>
Acked-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 80a7f727
...@@ -63,16 +63,11 @@ resizer_calculate_line_length(u32 pix, int width, int height, ...@@ -63,16 +63,11 @@ resizer_calculate_line_length(u32 pix, int width, int height,
if (pix == MEDIA_BUS_FMT_UYVY8_2X8 || if (pix == MEDIA_BUS_FMT_UYVY8_2X8 ||
pix == MEDIA_BUS_FMT_SGRBG12_1X12) { pix == MEDIA_BUS_FMT_SGRBG12_1X12) {
*line_len = width << 1; *line_len = width << 1;
} else if (pix == MEDIA_BUS_FMT_Y8_1X8 ||
pix == MEDIA_BUS_FMT_UV8_1X8) {
*line_len = width;
*line_len_c = width;
} else { } else {
/* YUV 420 */
/* round width to upper 32 byte boundary */
*line_len = width; *line_len = width;
*line_len_c = width; *line_len_c = width;
} }
/* adjust the line len to be a multiple of 32 */ /* adjust the line len to be a multiple of 32 */
*line_len += 31; *line_len += 31;
*line_len &= ~0x1f; *line_len &= ~0x1f;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment