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: avoid no needed cast in ks_wlan_cap
In ks_wlan_cap there is a cast to uint16_t to use cpu_to_le16 with variable 'capability' which is already defined as u16. Avoid this cast to clean code. 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
81ad5837d0
commit
f7761114be
@@ -1275,7 +1275,7 @@ static __le16 ks_wlan_cap(struct ks_wlan_private *priv)
|
||||
capability &= ~(WLAN_CAPABILITY_DSSS_OFDM);
|
||||
}
|
||||
|
||||
return cpu_to_le16((uint16_t)capability);
|
||||
return cpu_to_le16(capability);
|
||||
}
|
||||
|
||||
static void init_request(struct ks_wlan_private *priv,
|
||||
|
||||
Reference in New Issue
Block a user