浏览代码

staging: ks7010: replace uint8_t with u8 in ks_wlan_set_rx_gain

In function ks_wlan_set_rx_gain a cast to uint8_t is being used
to assign reception gain. 'rx_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>
Sergio Paracuellos 7 年之前
父节点
当前提交
f647b8e1ff
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/ks7010/ks_wlan_net.c

+ 1 - 1
drivers/staging/ks7010/ks_wlan_net.c

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