Commit f06d186d authored by Jingoo Han's avatar Jingoo Han Committed by Felipe Balbi

usb: gadget: tcm_usb_gadget: remove unnecessary OOM messages

The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent e5f06f90
...@@ -1383,10 +1383,8 @@ static struct se_node_acl *usbg_alloc_fabric_acl(struct se_portal_group *se_tpg) ...@@ -1383,10 +1383,8 @@ static struct se_node_acl *usbg_alloc_fabric_acl(struct se_portal_group *se_tpg)
struct usbg_nacl *nacl; struct usbg_nacl *nacl;
nacl = kzalloc(sizeof(struct usbg_nacl), GFP_KERNEL); nacl = kzalloc(sizeof(struct usbg_nacl), GFP_KERNEL);
if (!nacl) { if (!nacl)
printk(KERN_ERR "Unable to allocate struct usbg_nacl\n");
return NULL; return NULL;
}
return &nacl->se_node_acl; return &nacl->se_node_acl;
} }
...@@ -1561,10 +1559,8 @@ static struct se_portal_group *usbg_make_tpg( ...@@ -1561,10 +1559,8 @@ static struct se_portal_group *usbg_make_tpg(
} }
tpg = kzalloc(sizeof(struct usbg_tpg), GFP_KERNEL); tpg = kzalloc(sizeof(struct usbg_tpg), GFP_KERNEL);
if (!tpg) { if (!tpg)
printk(KERN_ERR "Unable to allocate struct usbg_tpg");
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
}
mutex_init(&tpg->tpg_mutex); mutex_init(&tpg->tpg_mutex);
atomic_set(&tpg->tpg_port_count, 0); atomic_set(&tpg->tpg_port_count, 0);
tpg->workqueue = alloc_workqueue("tcm_usb_gadget", 0, 1); tpg->workqueue = alloc_workqueue("tcm_usb_gadget", 0, 1);
...@@ -1613,10 +1609,8 @@ static struct se_wwn *usbg_make_tport( ...@@ -1613,10 +1609,8 @@ static struct se_wwn *usbg_make_tport(
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
tport = kzalloc(sizeof(struct usbg_tport), GFP_KERNEL); tport = kzalloc(sizeof(struct usbg_tport), GFP_KERNEL);
if (!(tport)) { if (!(tport))
printk(KERN_ERR "Unable to allocate struct usbg_tport");
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
}
tport->tport_wwpn = wwpn; tport->tport_wwpn = wwpn;
snprintf(tport->tport_name, sizeof(tport->tport_name), "%s", wnn_name); snprintf(tport->tport_name, sizeof(tport->tport_name), "%s", wnn_name);
return &tport->tport_wwn; return &tport->tport_wwn;
...@@ -1727,10 +1721,8 @@ static int tcm_usbg_make_nexus(struct usbg_tpg *tpg, char *name) ...@@ -1727,10 +1721,8 @@ static int tcm_usbg_make_nexus(struct usbg_tpg *tpg, char *name)
ret = -ENOMEM; ret = -ENOMEM;
tv_nexus = kzalloc(sizeof(*tv_nexus), GFP_KERNEL); tv_nexus = kzalloc(sizeof(*tv_nexus), GFP_KERNEL);
if (!tv_nexus) { if (!tv_nexus)
pr_err("Unable to allocate struct tcm_vhost_nexus\n");
goto err_unlock; goto err_unlock;
}
tv_nexus->tvn_se_sess = transport_init_session(TARGET_PROT_NORMAL); tv_nexus->tvn_se_sess = transport_init_session(TARGET_PROT_NORMAL);
if (IS_ERR(tv_nexus->tvn_se_sess)) if (IS_ERR(tv_nexus->tvn_se_sess))
goto err_free; goto err_free;
......
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