usb: bdc: remove duplicated error message
authorTang Bin <tangbin@cmss.chinamobile.com>
Mon, 28 Sep 2020 12:00:51 +0000 (20:00 +0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 2 Oct 2020 06:57:46 +0000 (09:57 +0300)
commita73abc28ce67989ebf881f33961d9dec9c7522b9
tree28bea41c3d3b7dfdb1895150e34a7090fadaddea
parentae7e86108b12351028fa7e8796a59f9b2d9e1774
usb: bdc: remove duplicated error message

in case devm_platform_ioremap_resource() fails, that function already
prints a relevant error message which renders the driver's dev_err()
redundant. Let's remove the unnecessary message and, while at that,
also make sure to pass along the error value returned by
devm_platform_ioremap_resource() instead of always returning -ENOMEM.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
[balbi@kernel.org : improved commit log]

Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/bdc/bdc_core.c