ARM: omap1: remove redundant variables err
authorJinpeng Cui <cui.jinpeng2@zte.com.cn>
Tue, 30 Aug 2022 14:21:36 +0000 (14:21 +0000)
committerTony Lindgren <tony@atomide.com>
Mon, 27 Mar 2023 07:10:37 +0000 (10:10 +0300)
commitc29313d58c42f205cdecdd337f784f59bdf92dd7
tree8520509d9e23b81eb5fac8544004e5b6186c5bc8
parent3ea0b91d9b48124b01e30004547238afd6b5a310
ARM: omap1: remove redundant variables err

Return value directly from platform_device_register()
instead of getting value from redundant variable err.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Jinpeng Cui <cui.jinpeng2@zte.com.cn>
Message-Id: <20220830142136.299373-1-cui.jinpeng2@zte.com.cn>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-ams-delta.c