Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pcmcia Insert { ... } to keep gcc happy when DPRINTF...



details:   https://anonhg.NetBSD.org/src/rev/27b9936a10f3
branches:  trunk
changeset: 328871:27b9936a10f3
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Apr 21 20:24:21 2014 +0000

description:
Insert { ... } to keep gcc happy when DPRINTF() macro is empty.

diffstat:

 sys/dev/pcmcia/if_malo_pcmcia.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r dbc654cfe1b1 -r 27b9936a10f3 sys/dev/pcmcia/if_malo_pcmcia.c
--- a/sys/dev/pcmcia/if_malo_pcmcia.c   Mon Apr 21 19:26:56 2014 +0000
+++ b/sys/dev/pcmcia/if_malo_pcmcia.c   Mon Apr 21 20:24:21 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_malo_pcmcia.c,v 1.4 2014/02/21 02:10:40 christos Exp $      */
+/*     $NetBSD: if_malo_pcmcia.c,v 1.5 2014/04/21 20:24:21 pgoyette Exp $      */
 /*      $OpenBSD: if_malo.c,v 1.65 2009/03/29 21:53:53 sthen Exp $ */
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_malo_pcmcia.c,v 1.4 2014/02/21 02:10:40 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_malo_pcmcia.c,v 1.5 2014/04/21 20:24:21 pgoyette Exp $");
 
 #ifdef _MODULE
 #include <sys/module.h>
@@ -1859,9 +1859,10 @@
                DPRINTF(1, "%s: association failed (status %d)\n",
                    device_xname(sc->sc_dev), body->status);
                sc->sc_flags |= MALO_ASSOC_FAILED;
-       } else
+       } else {
                DPRINTF(1, "%s: association successful\n",
                    device_xname(sc->sc_dev));
+       }
 
        return 0;
 }



Home | Main Index | Thread Index | Old Index