diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2018-05-13 21:35:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-14 15:07:07 +0300 |
commit | 14b61a520567118088948c8e60d367e870d74d28 (patch) | |
tree | 739af13ca20ed0c5b65bf7d0df651d25f43e0248 /drivers/staging/ks7010 | |
parent | dea2f1fb84c8b7d3581e90def1834b7bf4bdd585 (diff) | |
download | linux-14b61a520567118088948c8e60d367e870d74d28.tar.xz |
staging: ks7010: change two parameter types in hostif_mic_failure_request
Parameters 'failure_count' and 'timer' was declared as unsigned
short and then there was being casted to u16 inside cpu_to_le16
to make the assignation. Just declare them as 'u16' and avoid
casting at all.
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 | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index 5e7d3fa00ed4..1cb5d90403a5 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -1501,8 +1501,7 @@ void hostif_bss_scan_request(struct ks_wlan_private *priv, static void hostif_mic_failure_request(struct ks_wlan_private *priv, - unsigned short failure_count, - unsigned short timer) + u16 failure_count, u16 timer) { struct hostif_mic_failure_request *pp; @@ -1510,8 +1509,8 @@ void hostif_mic_failure_request(struct ks_wlan_private *priv, if (!pp) return; - pp->failure_count = cpu_to_le16((uint16_t)failure_count); - pp->timer = cpu_to_le16((uint16_t)timer); + pp->failure_count = cpu_to_le16(failure_count); + pp->timer = cpu_to_le16(timer); send_request_to_device(priv, pp, hif_align_size(sizeof(*pp))); } |