x86/boot: clean up whitespace in a20.c
PATCH 1/1 x86/boot: clean up whitespace in a20.c
Remove trailing whitespace and fix blank lines in arch/x86/boot/a20.c reported by checkpatch.pl.
No functional changes.
Signed-off-by Harry Fellowes <[email protected]>
--- arch/x86/boot/a20.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
arch/x86/boot/a20.c +9 -9
@@ -135,29 +135,29 @@ int enable_a20(void)(legacy free, etc.) */ if (a20_test_short ())return 0 ; - +/* Next, try the BIOS (INT 0x15, AX=0x2401) */ enable_a20_bios ();if (a20_test_short ())return 0 ; - -/* Try enabling A20 through the keyboard controller */ + +/* Try enabling A20 through the keyboard controller */ kbc_err =empty_8042 ();if (a20_test_short ())return 0 ;/* BIOS worked, but with delayed reaction */ - -if (!kbc_err) { + +if (!kbc_err) {enable_a20_kbc ();if (a20_test_long ())return 0 ; } - -/* Finally, try enabling the "fast A20 gate" */ + +/* Finally, try enabling the "fast A20 gate" */ enable_a20_fast ();if (a20_test_long ())return 0 ; } - -return -1 ; + +return -1 ; }
Signature · 1 line
2.51.0
Quoted 15 lines · Harry Fellowes
Remove trailing whitespace and fix blank lines in
arch/x86/boot/a20.creported by checkpatch.pl.No functional changes.
Signed-off-by Harry Fellowes <[email protected]>--- arch/x86/boot/a20.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)arch/x86/boot/a20.c +0
-0
arch/x86/boot/a20.c int enable_a20(void) · line 138
Quoted 5 lines
arch/x86/boot/a20.c +1
-1@@ -135,29 +135,29 @@ int enable_a20(void)(legacy free, etc.) */ if (a20_test_short ())return 0 ; - +
This is good.
arch/x86/boot/a20.c int enable_a20(void) · line 144
Quoted 8 lines
arch/x86/boot/a20.c +2
-2/* Next, try the BIOS (INT 0x15, AX=0x2401) */ enable_a20_bios ();if (a20_test_short ())return 0 ; - -/* Try enabling A20 through the keyboard controller */ + +/* Try enabling A20 through the keyboard controller */
Why? We do tabs at the beginning.
Quoted 8 lines
arch/x86/boot/a20.c +2
-2kbc_err =empty_8042 ();if (a20_test_short ())return 0 ;/* BIOS worked, but with delayed reaction */ - -if (!kbc_err) { + +if (!kbc_err) {
...
Quoted 8 lines
enable_a20_kbc(); if (a20_test_long()) return 0; }arch/x86/boot/a20.c +2
-2- -/* Finally, try enabling the "fast A20 gate" */ + +/* Finally, try enabling the "fast A20 gate" */
...
arch/x86/boot/a20.c int enable_a20(void) · line 162
Quoted 8 lines
enable_a20_fast(); if (a20_test_long()) return 0; }arch/x86/boot/a20.c +2
-2- -return -1 ; + +return -1 ;
Fix one but then add four, not a good deal.
Quoted 1 line
}