mirror of https://gitee.com/openkylin/linux.git
usb: gadget: s3c-hsudc: 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: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
0590c4bf4b
commit
3dc3b4e15e
|
@ -1267,10 +1267,8 @@ static int s3c_hsudc_probe(struct platform_device *pdev)
|
|||
hsudc = devm_kzalloc(&pdev->dev, sizeof(struct s3c_hsudc) +
|
||||
sizeof(struct s3c_hsudc_ep) * pd->epnum,
|
||||
GFP_KERNEL);
|
||||
if (!hsudc) {
|
||||
dev_err(dev, "cannot allocate memory\n");
|
||||
if (!hsudc)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
platform_set_drvdata(pdev, dev);
|
||||
hsudc->dev = dev;
|
||||
|
|
Loading…
Reference in New Issue