aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2016-05-08 18:15:31 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-09 07:08:46 -0400
commit2b4ba254d2c1f7489da435fba0add68e6695fefa (patch)
tree3c282ac8699c0b48fa487893d8e12a5ea43ef1d6
parentf879fc32aa0c96fbac261b3d857a1239d554ad01 (diff)
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>
-rw-r--r--drivers/usb/host/fhci-sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/fhci-sched.c b/drivers/usb/host/fhci-sched.c
index a9609a336efe..2f162faabbca 100644
--- a/drivers/usb/host/fhci-sched.c
+++ b/drivers/usb/host/fhci-sched.c
@@ -288,7 +288,7 @@ static int scan_ed_list(struct fhci_usb *usb,
288 list_for_each_entry(ed, list, node) { 288 list_for_each_entry(ed, list, node) {
289 td = ed->td_head; 289 td = ed->td_head;
290 290
291 if (!td || (td && td->status == USB_TD_INPROGRESS)) 291 if (!td || td->status == USB_TD_INPROGRESS)
292 continue; 292 continue;
293 293
294 if (ed->state != FHCI_ED_OPER) { 294 if (ed->state != FHCI_ED_OPER) {