summaryrefslogtreecommitdiff
path: root/drivers/usb/misc/legousbtower.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2019-11-05 09:41:40 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-07 11:17:49 +0100
commit07efa8738853696f100b0495b767823308330b3d (patch)
treede7c3569f7b82f5c0bdb8ee5614a5b644ef654e7 /drivers/usb/misc/legousbtower.c
parentfa5e146eece5657b8bbfae9facce13b7b7dc65b5 (diff)
USB: legousbtower: drop redundant NULL check
Drop redundant NULL check from tower_abort_transfers(), which is never called with a NULL argument. Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20191105084152.16322-3-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/legousbtower.c')
-rw-r--r--drivers/usb/misc/legousbtower.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/misc/legousbtower.c b/drivers/usb/misc/legousbtower.c
index 1be84dc13067..a3ae843e0a3a 100644
--- a/drivers/usb/misc/legousbtower.c
+++ b/drivers/usb/misc/legousbtower.c
@@ -457,9 +457,6 @@ exit:
*/
static void tower_abort_transfers (struct lego_usb_tower *dev)
{
- if (dev == NULL)
- return;
-
/* shutdown transfer */
if (dev->interrupt_in_running) {
dev->interrupt_in_running = 0;