Skip to content

Commit c00574b

Browse files
committed
Merge tag 'omap-for-v6.4/omap1-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into soc/arm
Clean-up for omap1 for v6.4 merge window Two clean-up patches to fix Kconfig indentation and to simplify the return path for ams_delta_modem_init(). * tag 'omap-for-v6.4/omap1-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: ARM: omap1: remove redundant variables err ARM: omap1: Kconfig: Fix indentation Link: https://lore.kernel.org/r/pull-1680180485-415954@atomide.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents fb481b2 + c29313d commit c00574b

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

arch/arm/mach-omap1/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ config MACH_OMAP_OSK
118118
depends on ARCH_OMAP16XX
119119
help
120120
TI OMAP 5912 OSK (OMAP Starter Kit) board support. Say Y here
121-
if you have such a board.
121+
if you have such a board.
122122

123123
config MACH_OMAP_PALMTE
124124
bool "Palm Tungsten E"

arch/arm/mach-omap1/board-ams-delta.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -822,8 +822,6 @@ static int __init modem_nreset_init(void)
822822
*/
823823
static int __init ams_delta_modem_init(void)
824824
{
825-
int err;
826-
827825
if (!machine_is_ams_delta())
828826
return -ENODEV;
829827

@@ -832,9 +830,7 @@ static int __init ams_delta_modem_init(void)
832830
/* Initialize the modem_nreset regulator consumer before use */
833831
modem_priv.regulator = ERR_PTR(-ENODEV);
834832

835-
err = platform_device_register(&ams_delta_modem_device);
836-
837-
return err;
833+
return platform_device_register(&ams_delta_modem_device);
838834
}
839835
arch_initcall_sync(ams_delta_modem_init);
840836

0 commit comments

Comments
 (0)