mirror of
https://github.com/torvalds/linux.git
synced 2024-12-08 12:11:30 +00:00
usb: phy: phy-am335x-control: 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
01ad32d5b5
commit
9aabd03272
@ -147,10 +147,8 @@ static int am335x_control_usb_probe(struct platform_device *pdev)
|
||||
phy_ctrl = of_id->data;
|
||||
|
||||
ctrl_usb = devm_kzalloc(&pdev->dev, sizeof(*ctrl_usb), GFP_KERNEL);
|
||||
if (!ctrl_usb) {
|
||||
dev_err(&pdev->dev, "unable to alloc memory for control usb\n");
|
||||
if (!ctrl_usb)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
ctrl_usb->dev = &pdev->dev;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user