Commit b360cb97 authored by Rupesh Gujare's avatar Rupesh Gujare Committed by Greg Kroah-Hartman

staging:ozwpan: Fix following warning.

The patch ae926051: "staging: ozwpan: Added USB HCD
implementation" from Feb 20, 2012, leads to the following warning:
drivers/staging/ozwpan/ozhcd.c:1094 oz_hcd_heartbeat()
	 warn: what is this condition about? 'ep->buffered_units * 50'
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarRupesh Gujare <rupesh.gujare@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 93eff83f
...@@ -1091,7 +1091,7 @@ int oz_hcd_heartbeat(void *hport) ...@@ -1091,7 +1091,7 @@ int oz_hcd_heartbeat(void *hport)
list_for_each(e, &port->isoc_in_ep) { list_for_each(e, &port->isoc_in_ep) {
struct oz_endpoint *ep = ep_from_link(e); struct oz_endpoint *ep = ep_from_link(e);
if (ep->flags & OZ_F_EP_BUFFERING) { if (ep->flags & OZ_F_EP_BUFFERING) {
if (ep->buffered_units * OZ_IN_BUFFERING_UNITS) { if (ep->buffered_units >= OZ_IN_BUFFERING_UNITS) {
ep->flags &= ~OZ_F_EP_BUFFERING; ep->flags &= ~OZ_F_EP_BUFFERING;
ep->credit = 0; ep->credit = 0;
oz_event_log(OZ_EVT_EP_CREDIT, oz_event_log(OZ_EVT_EP_CREDIT,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment