aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2012-09-19 17:00:55 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-21 12:37:53 -0400
commit17dcfc9bd3dfb699e00205ec9d431b5a5cb00b34 (patch)
tree6ace671b30fd7fd6b1bd3a7aa5b43a37920d3099
parent0cb72e184ac4d83705147eee07ba978473b75015 (diff)
USB: EHCI: remove useless test
This patch (as1605) removes a useless test from the EHCI debugfs code. There's no point checking whether p.qh is non-NULL; we already know it is and in any case it gets dereferenced aerlier in the function. The useless test was identified by smatch. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/host/ehci-dbg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c
index f0c00de035ef..1599806e3d47 100644
--- a/drivers/usb/host/ehci-dbg.c
+++ b/drivers/usb/host/ehci-dbg.c
@@ -653,10 +653,8 @@ static ssize_t fill_periodic_buffer(struct debug_buffer *buf)
653 seen [seen_count++].qh = p.qh; 653 seen [seen_count++].qh = p.qh;
654 } else 654 } else
655 temp = 0; 655 temp = 0;
656 if (p.qh) { 656 tag = Q_NEXT_TYPE(ehci, hw->hw_next);
657 tag = Q_NEXT_TYPE(ehci, hw->hw_next); 657 p = p.qh->qh_next;
658 p = p.qh->qh_next;
659 }
660 break; 658 break;
661 case Q_TYPE_FSTN: 659 case Q_TYPE_FSTN:
662 temp = scnprintf (next, size, 660 temp = scnprintf (next, size,