Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pcmcia Remove superfluous parentheses in return stat...



details:   https://anonhg.NetBSD.org/src/rev/97ddebb88ea9
branches:  trunk
changeset: 768369:97ddebb88ea9
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Mon Aug 15 17:08:00 2011 +0000

description:
Remove superfluous parentheses in return statements.  No change in the
generated assembly.

diffstat:

 sys/dev/pcmcia/if_wi_pcmcia.c |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (63 lines):

diff -r d7b9c9a63dc4 -r 97ddebb88ea9 sys/dev/pcmcia/if_wi_pcmcia.c
--- a/sys/dev/pcmcia/if_wi_pcmcia.c     Mon Aug 15 17:01:28 2011 +0000
+++ b/sys/dev/pcmcia/if_wi_pcmcia.c     Mon Aug 15 17:08:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wi_pcmcia.c,v 1.87 2011/08/15 17:01:28 dyoung Exp $ */
+/* $NetBSD: if_wi_pcmcia.c,v 1.88 2011/08/15 17:08:00 dyoung Exp $ */
 
 /*-
  * Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wi_pcmcia.c,v 1.87 2011/08/15 17:01:28 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wi_pcmcia.c,v 1.88 2011/08/15 17:08:00 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -256,8 +256,8 @@
 
        if (pcmcia_product_lookup(pa, wi_pcmcia_products, wi_pcmcia_nproducts,
            sizeof(wi_pcmcia_products[0]), NULL))
-               return (1);
-       return (0);
+               return 1;
+       return 0;
 }
 
 static int
@@ -315,9 +315,9 @@
        if (cfe->iftype != PCMCIA_IFTYPE_IO ||
            cfe->num_iospace != 1 ||
            cfe->iospace[0].length < WI_IOSIZE)
-               return (EINVAL);
+               return EINVAL;
        cfe->num_memspace = 0;
-       return (0);
+       return 0;
 }
 
 static void
@@ -397,18 +397,18 @@
        int error;
 
        if (psc->sc_state != WI_PCMCIA_ATTACHED)
-               return (0);
+               return 0;
 
        error = wi_detach(&psc->sc_wi);
        if (error != 0)
-               return (error);
+               return error;
 
        if (sc->sc_ih != NULL)
                pcmcia_intr_disestablish(psc->sc_pf, sc->sc_ih);
 
        pcmcia_function_unconfigure(psc->sc_pf);
 
-       return (0);
+       return 0;
 }
 
 /*



Home | Main Index | Thread Index | Old Index