Commit 6d9be937 authored by Jing Xiangfeng's avatar Jing Xiangfeng Committed by Tony Lindgren
Browse files

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: default avatarJing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent c3f244d5
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);