diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2018-05-13 20:35:45 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-14 14:07:06 +0200 |
commit | bc0b3f43ca94c5e52564a13f61b7303a91883185 (patch) | |
tree | 7ced049b525afd0d12a339a2faffe4ad10dd4dde /drivers/staging/ks7010 | |
parent | 4cf2df756f6bda754abc070d44a1f05d6996de2e (diff) | |
download | talos-op-linux-bc0b3f43ca94c5e52564a13f61b7303a91883185.tar.gz talos-op-linux-bc0b3f43ca94c5e52564a13f61b7303a91883185.zip |
staging: ks7010: use u16 as type for casting in hostif_data_indication_wpa
Field 'counter' in mic_failure struct is being assigned casting
value using uint16_t. Replace with u16 which is the correct type
of the field and the preferred one.
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_hostif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index 7b6a3850d55d..9d3f7e38f7cc 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -323,7 +323,7 @@ int hostif_data_indication_wpa(struct ks_wlan_private *priv, } else if (mic_failure->failure == 1) { mic_failure->failure = 2; mic_failure->counter = - (uint16_t)((now - mic_failure->last_failure_time) / HZ); + (u16)((now - mic_failure->last_failure_time) / HZ); /* range 1-60 */ if (!mic_failure->counter) mic_failure->counter = 1; |