usb: gadget: udc: Avoid tasklet passing a global
authorKees Cook <keescook@chromium.org>
Mon, 13 Jul 2020 22:01:33 +0000 (15:01 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 30 Jul 2020 18:15:48 +0000 (11:15 -0700)
commitf9dc3713df1229aa8168169e9cf1010fbac68de5
tree05a34030eaaa992718183e1300bbb6d70a6028a9
parent11ba468877bb23f28956a35e896356252d63c983
usb: gadget: udc: Avoid tasklet passing a global

There's no reason for the tasklet callback to set an argument since it
always uses a global. Instead, use the global directly, in preparation
for converting the tasklet subsystem to modern callback conventions.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/usb/gadget/udc/snps_udc_core.c