svn commit: r244943 - in head/sys/dev/ath/ath_hal: ar5416 ar9002

Alexey Dokuchaev danfe at freebsd.org
Wed May 22 16:36:13 UTC 2019


On Wed, Jan 02, 2013 at 12:38:01AM +0000, Adrian Chadd wrote:
> New Revision: 244943
> URL: http://svnweb.freebsd.org/changeset/base/244943
> 
> Log:
>   Bring over the basic spectral scan framework code from Qualcomm Atheros.
>   
>   This includes the HAL routines to setup, enable/activate/disable spectral
>   scan and configure the relevant registers.
>   
>   Obtained from:	Qualcomm Atheros
> 
> Added:
>   head/sys/dev/ath/ath_hal/ar5416/ar5416_spectral.c
> 
> ...
> +	if (ss->ss_period != HAL_SPECTRAL_PARAM_NOVAL) {
> +		val &= ~AR_PHY_SPECTRAL_SCAN_PERIOD;
> +		val |= SM(ss->ss_period, AR_PHY_SPECTRAL_SCAN_PERIOD);
> +	}
> +
> +	if (ss->ss_period != HAL_SPECTRAL_PARAM_NOVAL) {
> +		val &= ~AR_PHY_SPECTRAL_SCAN_PERIOD;
> +		val |= SM(ss->ss_period, AR_PHY_SPECTRAL_SCAN_PERIOD);
> +	}

PVS Studio complains here: warning: V581 The conditional expressions of
the 'if' operators situated alongside each other are identical.

./danfe


More information about the svn-src-all mailing list