2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 21:24:00 +08:00

staging: ks7010: replace uint8_t with u8 in ks_wlan_set_tx_gain

In function ks_wlan_set_tx_gain a cast to uint8_t is being used
to assign transmission gain. 'tx_gain' field is defined as u8 so
replace the cast to the correct type.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sergio Paracuellos 2018-05-13 20:35:42 +02:00 committed by Greg Kroah-Hartman
parent 255d4e1ddc
commit ace98ed095

View File

@ -2123,7 +2123,7 @@ static int ks_wlan_set_tx_gain(struct net_device *dev,
if (*uwrq > 0xFF)
return -EINVAL;
priv->gain.tx_gain = (uint8_t)*uwrq;
priv->gain.tx_gain = (u8)*uwrq;
priv->gain.tx_mode = (priv->gain.tx_gain < 0xFF) ? 1 : 0;
hostif_sme_enqueue(priv, SME_SET_GAIN);
return 0;