Commit 13dd1267 authored by Michael Grzeschik's avatar Michael Grzeschik Committed by Neill Kapron
Browse files

UPSTREAM: usb: gadget: uvc: drop unnecessary check for always set req



The pump function is running in an while(1) loop. The only case this
loop will be escaped is the two breaks. In both cases the req is valid.
Therefor the check for an not set req can be dropped and setting the req
to NULL does also has never any effect.

Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20240214-uvc-gadget-cleanup-v1-1-de6d78780459@pengutronix.de


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 379236348
(cherry picked from commit ed6cbac8)
Change-Id: Iba07661126cbd471608a78c587a35fb7d90cff7b
Signed-off-by: default avatarSelvarasu Ganesan <selvarasu.g@samsung.com>
parent fa2752f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment