diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2018-05-04 06:16:49 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-06 18:58:41 -0700 |
commit | ab0bb2a4035e7baa5dbfc2fefc7b556ce54f6046 (patch) | |
tree | fa332d4e456a75d1c9a57664caad05ec32b21cde /drivers/staging/ks7010 | |
parent | 19e8a0d7305713a348a07db06921856104cce3bb (diff) | |
download | linux-stable-ab0bb2a4035e7baa5dbfc2fefc7b556ce54f6046.tar.gz linux-stable-ab0bb2a4035e7baa5dbfc2fefc7b556ce54f6046.tar.bz2 linux-stable-ab0bb2a4035e7baa5dbfc2fefc7b556ce54f6046.zip |
staging: ks7010: use u16 instead of unsigned short in hostif_connect_indication
Local variable 'connect_code' is declared as unsigned short in
hostif_connect_indication function. Its value is got calling
get_word which returns an 'u16' so change its type to u16
which is preferred.
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 d4ce9860d4c2..fde5b6ee7ed5 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -655,7 +655,7 @@ void hostif_start_confirm(struct ks_wlan_private *priv) static void hostif_connect_indication(struct ks_wlan_private *priv) { - unsigned short connect_code; + u16 connect_code; unsigned int tmp = 0; unsigned int old_status = priv->connect_status; struct net_device *netdev = priv->net_dev; |