Skip to contentSkip to conversation

: minor code cleanup

PATCH New Juan Quintela 1 participant 1 message Dec 19, 2002 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : minor code cleanup

Hi
once reading arc_con, found this.

Index: arch/mips/arc/arc_con.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/arc/arc_con.c,v retrieving revision 1.1.4.5

mips/arc/arc_con.c +1 -4
diff -u -r1.1.4.5 arc_con.c
@@ -32,10 +32,7 @@
 
 static int __init prom_console_setup(struct console *co, char *options)
 {
-	if (prom_flags & PROM_FLAG_USE_AS_CONSOLE)
-		return 0;
-	else
-		return 1;
+	return !(prom_flags & PROM_FLAG_USE_AS_CONSOLE);
 }
 
 static struct console arc_cons = {
Signature · 2 lines
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy