]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit455466400c4164c14756113405fa5e00dea399a4
tree912569828d0e4e4c52bd39d0509714fe89bd1652
parent5dda1b346d183a7c3b0a0d13c90546ff03bf63a9
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