linux-mips
[Top] [All Lists]

[PATCH]: minor code cleanup

To: Ralf Baechle <ralf@linux-mips.org>, linux mips mailing list <linux-mips@linux-mips.org>
Subject: [PATCH]: minor code cleanup
From: Juan Quintela <quintela@mandrakesoft.com>
Date: 19 Dec 2002 12:03:44 +0100
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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
diff -u -r1.1.4.5 arc_con.c
--- arch/mips/arc/arc_con.c     7 Nov 2002 01:47:45 -0000       1.1.4.5
+++ arch/mips/arc/arc_con.c     19 Dec 2002 10:17:47 -0000
@@ -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 = {


-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH]: minor code cleanup, Juan Quintela <=