usb: dwc3: make dwc3_get_device_id() return the id
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 4 Feb 2012 13:37:14 +0000 (16:37 +0300)
committerFelipe Balbi <balbi@ti.com>
Fri, 2 Mar 2012 10:12:02 +0000 (12:12 +0200)
We always return zero instead of the id we found.

Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c

index 33d9868320130013bfe709f9733310128f47fe0f..3fd4e843139e6e0e8007a91fc9963233ff0a6d55 100644 (file)
@@ -86,7 +86,7 @@ again:
                id = -ENOMEM;
        }
 
-       return 0;
+       return id;
 }
 EXPORT_SYMBOL_GPL(dwc3_get_device_id);