]> git.baikalelectronics.ru Git - kernel.git/commit
USB: FHCI: avoid redundant condition
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 8 May 2016 22:15:31 +0000 (00:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2016 11:08:46 +0000 (13:08 +0200)
commit04ad31cb8fbabff17385d63abeeaf75e2b3de47a
tree3c282ac8699c0b48fa487893d8e12a5ea43ef1d6
parent4b9576e732391e58fc66d7f761d88337a42ed88c
USB: FHCI: avoid redundant condition

The right part of the following or expression is only evaluated if
td is nonzero.
!td || (td && td.status == USB_TD_INPROGRESS)
So no need to check td again.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fhci-sched.c