Commit 51f1741f authored by Peter Chen's avatar Peter Chen Committed by Greg Kroah-Hartman

usb: chipidea: otg_fsm: delete unnecessary 'out of memory' messages

The memory subsystem has already had similar message for it.
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5e4ccd9e
...@@ -782,11 +782,8 @@ int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci) ...@@ -782,11 +782,8 @@ int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci)
otg = devm_kzalloc(ci->dev, otg = devm_kzalloc(ci->dev,
sizeof(struct usb_otg), GFP_KERNEL); sizeof(struct usb_otg), GFP_KERNEL);
if (!otg) { if (!otg)
dev_err(ci->dev,
"Failed to allocate usb_otg structure for ci hdrc otg!\n");
return -ENOMEM; return -ENOMEM;
}
otg->phy = ci->transceiver; otg->phy = ci->transceiver;
otg->gadget = &ci->gadget; otg->gadget = &ci->gadget;
...@@ -801,11 +798,8 @@ int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci) ...@@ -801,11 +798,8 @@ int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci)
ci->fsm_timer = devm_kzalloc(ci->dev, ci->fsm_timer = devm_kzalloc(ci->dev,
sizeof(struct ci_otg_fsm_timer_list), GFP_KERNEL); sizeof(struct ci_otg_fsm_timer_list), GFP_KERNEL);
if (!ci->fsm_timer) { if (!ci->fsm_timer)
dev_err(ci->dev,
"Failed to allocate timer structure for ci hdrc otg!\n");
return -ENOMEM; return -ENOMEM;
}
INIT_LIST_HEAD(&ci->fsm_timer->active_timers); INIT_LIST_HEAD(&ci->fsm_timer->active_timers);
retval = ci_otg_init_timers(ci); retval = ci_otg_init_timers(ci);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment