mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
drm/exynos: g2d: Delete an error message for a failed memory allocation in two functions
Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Inki Dae <inki.dae@samsung.com>
This commit is contained in:
parent
1293b61910
commit
6f0a60298b
@ -286,7 +286,6 @@ static int g2d_init_cmdlist(struct g2d_data *g2d)
|
|||||||
|
|
||||||
node = kcalloc(G2D_CMDLIST_NUM, sizeof(*node), GFP_KERNEL);
|
node = kcalloc(G2D_CMDLIST_NUM, sizeof(*node), GFP_KERNEL);
|
||||||
if (!node) {
|
if (!node) {
|
||||||
dev_err(dev, "failed to allocate memory\n");
|
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
@ -1358,10 +1357,9 @@ int exynos_g2d_exec_ioctl(struct drm_device *drm_dev, void *data,
|
|||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
runqueue_node = kmem_cache_alloc(g2d->runqueue_slab, GFP_KERNEL);
|
runqueue_node = kmem_cache_alloc(g2d->runqueue_slab, GFP_KERNEL);
|
||||||
if (!runqueue_node) {
|
if (!runqueue_node)
|
||||||
dev_err(dev, "failed to allocate memory\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
run_cmdlist = &runqueue_node->run_cmdlist;
|
run_cmdlist = &runqueue_node->run_cmdlist;
|
||||||
event_list = &runqueue_node->event_list;
|
event_list = &runqueue_node->event_list;
|
||||||
INIT_LIST_HEAD(run_cmdlist);
|
INIT_LIST_HEAD(run_cmdlist);
|
||||||
|
Loading…
Reference in New Issue
Block a user