NetBSD-Bugs archive

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

kern/44801: Misplaced parenthesis.



>Number:         44801
>Category:       kern
>Synopsis:       Misplaced parenthesis.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 30 12:40:00 +0000 2011
>Originator:     Henning Petersen
>Release:        
>Organization:
>Environment:
>Description:
Misplaced parenthesis.
>How-To-Repeat:

>Fix:
diff -u -r1.82 if_se.c
--- sys/dev/scsipi/if_se.c      27 Jul 2010 14:04:55 -0000      1.82
+++ sys/dev/scsipi/if_se.c      26 Mar 2011 11:10:13 -0000
@@ -946,7 +946,7 @@
                        break;
                ifp->if_flags |= IFF_UP;
 
-               if ((error = se_set_media(sc, CMEDIA_AUTOSENSE) != 0))
+               if ((error = se_set_media(sc, CMEDIA_AUTOSENSE)) != 0)
                        break;
 
                switch (ifa->ifa_addr->sa_family) {



Home | Main Index | Thread Index | Old Index