usb: gadget: uvc: refactor the check for a valid buffer in the pump worker
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Tue, 13 Feb 2024 23:28:01 +0000 (00:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Feb 2024 16:08:30 +0000 (17:08 +0100)
commit5e7ea65daf13a95a6cc63d1377e4c500e4e1340f
treee76028daf8803ceae6d0ab3f3b280e54a106a685
parented6cbac8ba2dd01aa12283b19243da8b66396f86
usb: gadget: uvc: refactor the check for a valid buffer in the pump worker

By toggling the condition check for a valid buffer, the else path
can be completely avoided.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20240214-uvc-gadget-cleanup-v1-2-de6d78780459@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/uvc_video.c