From: Richard Zhao Date: Tue, 15 May 2012 13:58:18 +0000 (+0800) Subject: usb: chipidea: remove zero check of hw_ep_max X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=09c94e628ac3f871f06eaa7a5be266ca1aaa75a1;p=~shefty%2Frdma-dev.git usb: chipidea: remove zero check of hw_ep_max It's 0 for host only device. Signed-off-by: Richard Zhao Cc: Marek Vasut Cc: Alan Stern Cc: Alexander Shishkin Cc: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index f568b8e86ce..15e03b308f8 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -195,7 +195,7 @@ static int hw_device_init(struct ci13xxx *ci, void __iomem *base) ffs_nr(DCCPARAMS_DEN); ci->hw_ep_max = reg * 2; /* cache hw ENDPT_MAX */ - if (ci->hw_ep_max == 0 || ci->hw_ep_max > ENDPT_MAX) + if (ci->hw_ep_max > ENDPT_MAX) return -ENODEV; dev_dbg(ci->dev, "ChipIdea HDRC found, lpm: %d; cap: %p op: %p\n",