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: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sergio Paracuellos 2018-05-13 20:35:47 +02:00 committed by Greg Kroah-Hartman
parent 521d3f26bc
commit 81ad5837d0
1 changed files with 3 additions and 4 deletions

View File

@ -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);
}
static
void hostif_mib_get_request(struct ks_wlan_private *priv,
unsigned long mib_attribute)
static void hostif_mib_get_request(struct ks_wlan_private *priv,
u32 mib_attribute)
{
struct hostif_mib_get_request *pp;
@ -1192,7 +1191,7 @@ void hostif_mib_get_request(struct ks_wlan_private *priv,
if (!pp)
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)));
}