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:
parent
c3f244d577
commit
6d9be9376b
|
@ -334,10 +334,9 @@ struct omap_device *omap_device_alloc(struct platform_device *pdev,
|
||||||
struct omap_hwmod **hwmods;
|
struct omap_hwmod **hwmods;
|
||||||
|
|
||||||
od = kzalloc(sizeof(struct omap_device), GFP_KERNEL);
|
od = kzalloc(sizeof(struct omap_device), GFP_KERNEL);
|
||||||
if (!od) {
|
if (!od)
|
||||||
ret = -ENOMEM;
|
|
||||||
goto oda_exit1;
|
goto oda_exit1;
|
||||||
}
|
|
||||||
od->hwmods_cnt = oh_cnt;
|
od->hwmods_cnt = oh_cnt;
|
||||||
|
|
||||||
hwmods = kmemdup(ohs, sizeof(struct omap_hwmod *) * oh_cnt, GFP_KERNEL);
|
hwmods = kmemdup(ohs, sizeof(struct omap_hwmod *) * oh_cnt, GFP_KERNEL);
|
||||||
|
|
Loading…
Reference in New Issue