OSDN Git Service

usb: gadget: tegra-xudc: Remove unneeded return variable
authorJon Hunter <jonathanh@nvidia.com>
Wed, 5 Apr 2023 18:18:54 +0000 (19:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 08:02:55 +0000 (10:02 +0200)
commit9d9a7614a75989a2356c8d2db736ce1a69d92fe4
tree81dc5cce1a7a361c6275ee1a0b4ef23081ff06d2
parent5629d31955297ca47b9283c64fff70f2f34aa528
usb: gadget: tegra-xudc: Remove unneeded return variable

The 'ret' variable in the function tegra_xudc_gadget_vbus_draw() is not
needed and so remove this variable.

Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20230405181854.42355-2-jonathanh@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/tegra-xudc.c