Commit 81ad5837 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: ks7010: change parameter type in hostif_mib_get_request

Second parameter 'mib_attribute' in function hostif_mib_get_request
is declared as unsigned long and inside the function a cast to uint32_t
is being used. Just pass a u32 instead and avoid the casting.
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 521d3f26
...@@ -1182,9 +1182,8 @@ static inline void send_request_to_device(struct ks_wlan_private *priv, ...@@ -1182,9 +1182,8 @@ static inline void send_request_to_device(struct ks_wlan_private *priv,
ks_wlan_hw_tx(priv, data, size, NULL, NULL); ks_wlan_hw_tx(priv, data, size, NULL, NULL);
} }
static static void hostif_mib_get_request(struct ks_wlan_private *priv,
void hostif_mib_get_request(struct ks_wlan_private *priv, u32 mib_attribute)
unsigned long mib_attribute)
{ {
struct hostif_mib_get_request *pp; struct hostif_mib_get_request *pp;
...@@ -1192,7 +1191,7 @@ void hostif_mib_get_request(struct ks_wlan_private *priv, ...@@ -1192,7 +1191,7 @@ void hostif_mib_get_request(struct ks_wlan_private *priv,
if (!pp) if (!pp)
return; return;
pp->mib_attribute = cpu_to_le32((uint32_t)mib_attribute); pp->mib_attribute = cpu_to_le32(mib_attribute);
send_request_to_device(priv, pp, hif_align_size(sizeof(*pp))); send_request_to_device(priv, pp, hif_align_size(sizeof(*pp)));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment