staging: dwc2: fix some functions to return a proper error code
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Sat, 23 Nov 2013 00:43:45 +0000 (16:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2013 19:59:57 +0000 (11:59 -0800)
commit9bda1aac6b98d79f06df4ae40711bf08d23e766d
tree69eb6f662462bae5ba1222bab61fb6cce0631b1f
parentbeb7e592bcfd750951c47580494f13065f0fd44c
staging: dwc2: fix some functions to return a proper error code

Fix some functions called by dwc2_hcd_qtd_add() to return either
a proper error code or 0, instead of somewhat random values.
Then change the caller of dwc2_hcd_qtd_add() to just check the
return value for 0.

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/hcd.c
drivers/staging/dwc2/hcd_queue.c