Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/i2c Consistent use of 'return'.



details:   https://anonhg.NetBSD.org/src/rev/25d32aa16505
branches:  trunk
changeset: 770053:25d32aa16505
user:      mbalmer <mbalmer%NetBSD.org@localhost>
date:      Sun Oct 02 12:25:40 2011 +0000

description:
Consistent use of 'return'.

diffstat:

 sys/dev/i2c/i2c.c |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (55 lines):

diff -r c0cca859cc6a -r 25d32aa16505 sys/dev/i2c/i2c.c
--- a/sys/dev/i2c/i2c.c Sun Oct 02 12:19:17 2011 +0000
+++ b/sys/dev/i2c/i2c.c Sun Oct 02 12:25:40 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i2c.c,v 1.29 2011/10/02 12:13:08 mbalmer Exp $ */
+/*     $NetBSD: i2c.c,v 1.30 2011/10/02 12:25:40 mbalmer Exp $ */
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.29 2011/10/02 12:13:08 mbalmer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.30 2011/10/02 12:25:40 mbalmer Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -75,7 +75,7 @@
        if (pnp != NULL)
                aprint_normal("iic at %s", pnp);
 
-       return (UNCONF);
+       return UNCONF;
 }
 
 static int
@@ -100,7 +100,7 @@
        if (ia->ia_addr != (i2c_addr_t)-1)
                aprint_normal(" addr 0x%x", ia->ia_addr);
 
-       return (UNCONF);
+       return UNCONF;
 }
 
 static int
@@ -126,8 +126,7 @@
                        sc->sc_devices[ia.ia_addr] =
                            config_attach(parent, cf, &ia, iic_print);
        }
-
-       return (0);
+       return 0;
 }
 
 static void
@@ -154,7 +153,7 @@
 iic_match(device_t parent, cfdata_t cf, void *aux)
 {
 
-       return (1);
+       return 1;
 }
 
 static void



Home | Main Index | Thread Index | Old Index