NetBSD-Bugs archive

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

kern/42527: Missing parenthesis in sys/dev/ic/smc90cx6.c .



>Number:         42527
>Category:       kern
>Synopsis:       Missing parenthesis in sys/dev/ic/smc90cx6.c .
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 27 08:35:02 +0000 2009
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Missing parenthesis found with cppcheck.
>How-To-Repeat:

>Fix:
diff -u -r1.60 smc90cx6.c
--- sys/dev/ic/smc90cx6.c       31 May 2009 14:11:17 -0000      1.60
+++ sys/dev/ic/smc90cx6.c       1 Dec 2009 11:58:42 -0000
@@ -288,7 +288,7 @@
 
 #ifdef BAH_DEBUG
        printf("%s: reset: bits cleared, status=0x%02x\n",
-           device_xname(&sc->sc_dev), GETREG(BAHSTAT);
+           device_xname(&sc->sc_dev), GETREG(BAHSTAT));
 #endif
 
        sc->sc_reconcount_excessive = ARC_EXCESSIVE_RECONS;
@@ -304,7 +304,7 @@
 
 #ifdef BAH_DEBUG
        printf("%s: reset: started receiver, status=0x%02x\n",
-           device_xname(&sc->sc_dev), GETREG(BAHSTAT);
+           device_xname(&sc->sc_dev), GETREG(BAHSTAT));
 #endif
 
        /* and init transmitter status */
@@ -845,7 +845,7 @@
                                        printf("%s: strt rx for buf %ld, "
                                            "stat 0x%02x\n",
                                            device_xname(&sc->sc_dev), 
sc->sc_rx_act,
-                                           GETREG(BAHSTAT);
+                                           GETREG(BAHSTAT));
 #endif



Home | Main Index | Thread Index | Old Index