]> git.baikalelectronics.ru Git - kernel.git/commit
media: ti-vpe: cal: Drop unneeded check in cal_calc_format_size()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 6 Dec 2020 23:53:46 +0000 (00:53 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 4 Jan 2021 11:06:23 +0000 (12:06 +0100)
commit8e75551de3b0c3ea536cdb4cdc5452acbb964a83
tree912569828d0e4e4c52bd39d0509714fe89bd1652
parent853eae86a024777ee50336efb2eafbe8b3d2c1ba
media: ti-vpe: cal: Drop unneeded check in cal_calc_format_size()

The cal_calc_format_size() function checks that the passed fmtinfo
argument is not NULL. All callers ensure that the pointer is valid. Drop
the check.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/ti-vpe/cal-video.c