vc04_services: bcm2835-codec: Remove redundant role check
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 3 Oct 2022 13:21:35 +0000 (14:21 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Mon, 3 Oct 2022 13:49:02 +0000 (14:49 +0100)
commit9b21516fe496ae646210c6a6ceac0347b36d5811
treee597d425d2d280c9d4f8cf7a0f5e3ed88b5ace0b
parent294b14464634c0dc4c703bfdeda18f795091d6e0
vc04_services: bcm2835-codec:  Remove redundant role check

vidioc_try_encoder_cmd checks the role, but the ioctl is disabled
for any roles in which it is invalid.

Remove the redundant check.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c