AT91: bootsource: Remove zero check of at91_bootsource
PATCH 1/1 AT91: bootsource: Remove zero check of at91_bootsource
The patch removes the redundant zero check for at91_bootsource before calling bootsource_set_raw(), as at91_bootsource == 0 is a valid scenario.
Signed-off-by Alexander Shiyan <[email protected]>
--- arch/arm/mach-at91/sama5_bootsource.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
arch/arm/mach-at91/sama5_bootsource.c +2 -3
@@ -28,9 +28,8 @@ static int sama5_bootsource_init(void)else return 0 ; -if (at91_bootsource) -bootsource_set_raw (sama5_bootsource (at91_bootsource), -sama5_bootsource_instance (at91_bootsource)); +bootsource_set_raw (sama5_bootsource (at91_bootsource), +sama5_bootsource_instance (at91_bootsource));return 0 ; }
Signature · 1 line
2.38.2
Sascha Hauer
AppliedQuoted 5 lines · Alexander Shiyan
The patch removes the redundant zero check for
at91_bootsourcebefore callingbootsource_set_raw(), asat91_bootsource== 0 is a valid scenario.
Applied, thanks!
[1/1] AT91: bootsource: Remove zero check of at91_bootsource
https://git.pengutronix.de/cgit/barebox/commit/?id=6d53ee35fd13 (link may not be stable)
Best regards,
Signature · 1 line
Sascha Hauer <[email protected]>