mirror of
https://github.com/torvalds/linux
synced 2024-10-17 00:39:37 +00:00
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>
This commit is contained in:
parent
fa5e146eec
commit
07efa87388
|
@ -457,9 +457,6 @@ static int tower_release (struct inode *inode, struct file *file)
|
|||
*/
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue