NetBSD-Bugs archive

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

kern/45996: Use the right return value.



>Number:         45996
>Category:       kern
>Synopsis:       Use the right return value.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 12 11:30:00 +0000 2012
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Return value false.
Found by clang.
>How-To-Repeat:

>Fix:
diff -u -p -r1.1.1.1 ar5416_misc.c
--- sys/external/isc/atheros_hal/dist/ar5416/ar5416_misc.c      11 Dec 2008 
04:46:48 -0000      1.1.1.1
+++ sys/external/isc/atheros_hal/dist/ar5416/ar5416_misc.c      5 Feb 2012 
07:42:45 -0000
@@ -113,7 +113,7 @@ ar5416SetAntennaSwitch(struct ath_hal *a
 HAL_BOOL
 ar5416SetDecompMask(struct ath_hal *ah, uint16_t keyidx, int en)
 {
-       return HAL_OK;
+       return AH_TRUE;
 }



Home | Main Index | Thread Index | Old Index