staging: most: usb: remove overcautious parameter checking
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 5 May 2020 10:00:26 +0000 (12:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 May 2020 10:17:58 +0000 (12:17 +0200)
commit3e8621aba71ad7b381699cf5119a779bc61e341d
tree6ee4dea6570755ebadf4dee2a612cc4dfd245ab1
parentd97a9d7aea04574959178557fa4c34efed64655a
staging: most: usb: remove overcautious parameter checking

The interface pointer passed to a core API function cannot be NULL. This
patch removes unnessecary the sanity check of the pointer.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/1588672829-28883-2-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/usb/usb.c