ARM: OMAP2+: Remove redundant assignment to variable ret
The variable ret has been initialized with '-ENOMEM'. The assignment in the if branch is redundant. So remove it. Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
Родитель
c3f244d577
Коммит
6d9be9376b
|
@ -334,10 +334,9 @@ struct omap_device *omap_device_alloc(struct platform_device *pdev,
|
|||
struct omap_hwmod **hwmods;
|
||||
|
||||
od = kzalloc(sizeof(struct omap_device), GFP_KERNEL);
|
||||
if (!od) {
|
||||
ret = -ENOMEM;
|
||||
if (!od)
|
||||
goto oda_exit1;
|
||||
}
|
||||
|
||||
od->hwmods_cnt = oh_cnt;
|
||||
|
||||
hwmods = kmemdup(ohs, sizeof(struct omap_hwmod *) * oh_cnt, GFP_KERNEL);
|
||||
|
|
Загрузка…
Ссылка в новой задаче