OSDN Git Service

media: staging: rkisp1: rsz: remove redundant if statement and add inline doc
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Sun, 12 Apr 2020 12:05:02 +0000 (14:05 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 5 May 2020 15:06:33 +0000 (17:06 +0200)
commit21e4cdcb62ae60b9dc23917e9d65b7283fbc8bc7
tree57a78c02279fcf371bc6eae033d615fb63965ff9
parente9ebce2d4c8b59c30ddc453770899aff9d3c58d0
media: staging: rkisp1: rsz: remove redundant if statement and add inline doc

The statement "if (rsz->fmt_type == V4L2_PIXEL_ENC_YUV)"
can be removed since the value of rsz->fmt_type is either
V4L2_PIXEL_ENC_YUV or V4L2_PIXEL_ENC_BAYER and the function
returns if it is bayer. In addition some doc with clarification
is added.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/rkisp1/rkisp1-resizer.c