NetBSD-Bugs archive

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

kern/41859: Missing parenthesis .



>Number:         41859
>Category:       kern
>Synopsis:       Missing parenthesis  .
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 09 11:00:00 +0000 2009
>Originator:     Henning Petersen
>Release:        current-NetBSD
>Organization:
>Environment:
>Description:

>How-To-Repeat:

>Fix:
diff -u -r1.17 ppi.c
--- sys/dev/gpib/ppi.c  12 May 2009 14:21:58 -0000      1.17
+++ sys/dev/gpib/ppi.c  9 Aug 2009 07:25:08 -0000
@@ -181,7 +181,7 @@
        if (sc == NULL)
                return (ENXIO);
 
-       if (sc->sc_flags & PPIF_ALIVE) == 0)
+       if ((sc->sc_flags & PPIF_ALIVE) == 0)
                return (ENXIO);
 
        DPRINTF(PDB_FOLLOW, ("ppiopen(%x, %x): flags %x\n",



Home | Main Index | Thread Index | Old Index