]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit2b4ba254d2c1f7489da435fba0add68e6695fefa
tree3c282ac8699c0b48fa487893d8e12a5ea43ef1d6
parentf879fc32aa0c96fbac261b3d857a1239d554ad01
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