summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-10-14 15:56:05 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-03 15:42:05 -0800
commit39d98bdc108b0d00be4318735384e03aed4f0466 (patch)
treef3acd2871062c36e9557be32d07a992504fc78ea /drivers/usb
parent58f7e76f7ce37417bd30f427168f75a9d84991ee (diff)
downloadblackbird-op-linux-39d98bdc108b0d00be4318735384e03aed4f0466.tar.gz
blackbird-op-linux-39d98bdc108b0d00be4318735384e03aed4f0466.zip
usb: misc: usb3503: delete unnecessary 'out of memory' messages
The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/misc/usb3503.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb/misc/usb3503.c
index ae7e1206ca54..b9af8cb19215 100644
--- a/drivers/usb/misc/usb3503.c
+++ b/drivers/usb/misc/usb3503.c
@@ -314,10 +314,8 @@ static int usb3503_i2c_probe(struct i2c_client *i2c,
int err;
hub = devm_kzalloc(&i2c->dev, sizeof(struct usb3503), GFP_KERNEL);
- if (!hub) {
- dev_err(&i2c->dev, "private data alloc fail\n");
+ if (!hub)
return -ENOMEM;
- }
i2c_set_clientdata(i2c, hub);
hub->regmap = devm_regmap_init_i2c(i2c, &usb3503_regmap_config);
@@ -336,10 +334,8 @@ static int usb3503_platform_probe(struct platform_device *pdev)
struct usb3503 *hub;
hub = devm_kzalloc(&pdev->dev, sizeof(struct usb3503), GFP_KERNEL);
- if (!hub) {
- dev_err(&pdev->dev, "private data alloc fail\n");
+ if (!hub)
return -ENOMEM;
- }
hub->dev = &pdev->dev;
return usb3503_probe(hub);
OpenPOWER on IntegriCloud