MIPS: Do not initialise globals to 0
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 21 Apr 2020 11:59:44 +0000 (19:59 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 21 Apr 2020 14:06:45 +0000 (16:06 +0200)
Fix the following checkpatch error:

ERROR: do not initialise globals to 0
#834: FILE: arch/mips/kernel/setup.c:834:
+int hw_coherentio = 0; /* Actual hardware supported DMA coherency setting. */

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/setup.c

index 10bef8f..b1e2d43 100644 (file)
@@ -831,7 +831,7 @@ arch_initcall(debugfs_mips);
 /* User defined DMA coherency from command line. */
 enum coherent_io_user_state coherentio = IO_COHERENCE_DEFAULT;
 EXPORT_SYMBOL_GPL(coherentio);
-int hw_coherentio = 0; /* Actual hardware supported DMA coherency setting. */
+int hw_coherentio;     /* Actual hardware supported DMA coherency setting. */
 
 static int __init setcoherentio(char *str)
 {