]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix enum conversion problems in sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
authordim <dim@FreeBSD.org>
Wed, 21 Dec 2011 17:36:45 +0000 (17:36 +0000)
committerdim <dim@FreeBSD.org>
Wed, 21 Dec 2011 17:36:45 +0000 (17:36 +0000)
commitf2ee53d6c6be94db78a3ed42ad07aefda3d44cf8
tree8e910c74d6e6990939457d43f4cab226a4c64e75
parentc15a655c3d924b322516e1a5eab7da6ab7fec91e
Fix enum conversion problems in sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
and sys/dev/ath/ath_hal/ar5416/ar5416_misc.c:

sys/dev/ath/ath_hal/ar5212/ar5212_misc.c:577:24: warning: implicit conversion from enumeration type 'HAL_STATUS' to different enumeration type 'HAL_BOOL' [-Wconversion]
                return HAL_EINVAL;
                ~~~~~~ ^~~~~~~~~~

and:

sys/dev/ath/ath_hal/ar5416/ar5416_misc.c:164:9: warning: implicit conversion from enumeration type 'HAL_STATUS' to different enumeration type 'HAL_BOOL' [-Wconversion]
        return HAL_OK;
        ~~~~~~ ^~~~~~

In both cases, enums HAL_BOOL and HAL_STATUS are mixed up.

MFC after: 1 week
sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
sys/dev/ath/ath_hal/ar5416/ar5416_misc.c