mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 17:46:43 +07:00
ARM: s3c64xx: Remove printk for failed memory allocation in samsung_bl_set
Omit an extra message for a memory allocation failure in samsung_bl_set(). This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
This commit is contained in:
parent
6c7a7db2e4
commit
9c1446c27f
@ -94,17 +94,14 @@ void __init samsung_bl_set(struct samsung_bl_gpio_info *gpio_info,
|
||||
|
||||
samsung_bl_device = kmemdup(&samsung_dfl_bl_device,
|
||||
sizeof(struct platform_device), GFP_KERNEL);
|
||||
if (!samsung_bl_device) {
|
||||
printk(KERN_ERR "%s: no memory for platform dev\n", __func__);
|
||||
if (!samsung_bl_device)
|
||||
return;
|
||||
}
|
||||
|
||||
samsung_bl_drvdata = kmemdup(&samsung_dfl_bl_data,
|
||||
sizeof(samsung_dfl_bl_data), GFP_KERNEL);
|
||||
if (!samsung_bl_drvdata) {
|
||||
printk(KERN_ERR "%s: no memory for platform dev\n", __func__);
|
||||
if (!samsung_bl_drvdata)
|
||||
goto err_data;
|
||||
}
|
||||
|
||||
samsung_bl_device->dev.platform_data = &samsung_bl_drvdata->plat_data;
|
||||
samsung_bl_drvdata->gpio_info = gpio_info;
|
||||
samsung_bl_data = &samsung_bl_drvdata->plat_data;
|
||||
|
Loading…
Reference in New Issue
Block a user