mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 08:20:40 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4cf2df756f
commit
bc0b3f43ca
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user