]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: v4l2-subdev: Drop unreacheable warning
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 13 Nov 2023 09:35:23 +0000 (11:35 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 19 Jun 2024 16:43:11 +0000 (19:43 +0300)
commit18a8f4c28884b7fb5fd3ba759c777cca693788ef
tree030e6a4cd3bb49e0ae27f4c7c1e674230c0d5c97
parent3f98113e1d51ab410b49e2698ef31cc06abfedc5
media: v4l2-subdev: Drop unreacheable warning

The v4l2_subdev_link_validate_get_format() function warns if the pad
given as argument belongs to a non-subdev entity. This can't happen, as
the function is called from v4l2_subdev_link_validate() only (indirectly
through v4l2_subdev_link_validate_locked()), and that function ensures
that both ends of the link are subdevs.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
drivers/media/v4l2-core/v4l2-subdev.c