summaryrefslogtreecommitdiff
path: root/drivers/staging/ks7010
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2018-05-13 20:35:43 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-14 14:07:06 +0200
commitf647b8e1ffcd0ded55feb5445afbb9d421c3155c (patch)
tree9cca492e111d21132b9926db86aab6fc87216e7b /drivers/staging/ks7010
parentace98ed095631588bd5a7ca8524b07076c690824 (diff)
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>
Diffstat (limited to 'drivers/staging/ks7010')
-rw-r--r--drivers/staging/ks7010/ks_wlan_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/staging/ks7010/ks_wlan_net.c
index c85ea83d23e1..dc5459ae0b51 100644
--- a/drivers/staging/ks7010/ks_wlan_net.c
+++ b/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;