diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-11-26 13:44:23 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-26 09:28:11 -0800 |
commit | d0f992498e82e656646ad833e3f32ad69cd093e7 (patch) | |
tree | 089ba35927f18cbdf7b7bcd2faf2ab99109c8d51 /drivers | |
parent | 4c503dd5fbdc33118d27f60e5c364d364980d4fd (diff) | |
download | blackbird-op-linux-d0f992498e82e656646ad833e3f32ad69cd093e7.tar.gz blackbird-op-linux-d0f992498e82e656646ad833e3f32ad69cd093e7.zip |
usb: chipidea: core: Remove unneeded OOM message
MM core code already complains when devm_kzalloc() fails, so no need to print
the error locally.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/chipidea/core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 5de1507b798c..cde3d24ebd10 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -633,10 +633,8 @@ static int ci_hdrc_probe(struct platform_device *pdev) return PTR_ERR(base); ci = devm_kzalloc(dev, sizeof(*ci), GFP_KERNEL); - if (!ci) { - dev_err(dev, "can't allocate device\n"); + if (!ci) return -ENOMEM; - } ci->dev = dev; ci->platdata = dev_get_platdata(dev); |