NetBSD-Bugs archive

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

kern/44797: Misplaced parenthesis.



>Number:         44797
>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:30:01 +0000 2011
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Misplaced parenthesis.
>How-To-Repeat:

>Fix:
diff -u -r1.213 subr_autoconf.c
--- sys/kern/subr_autoconf.c    6 Feb 2011 23:25:17 -0000       1.213
+++ sys/kern/subr_autoconf.c    26 Mar 2011 11:21:06 -0000
@@ -275,7 +275,7 @@
        for (cfai = &cfattachv[0]; cfai->cfai_name != NULL; cfai++) {
                for (j = 0; cfai->cfai_list[j] != NULL; j++) {
                        if ((error = att_do(cfai->cfai_name,
-                           cfai->cfai_list[j]) != 0)) {
+                           cfai->cfai_list[j])) != 0) {
                                pr("configure: attachment `%s' "
                                    "of `%s' driver %s failed: %d",
                                    cfai->cfai_list[j]->ca_name,



Home | Main Index | Thread Index | Old Index