From: Sergio Paracuellos Date: Sun, 13 May 2018 18:35:48 +0000 (+0200) Subject: staging: ks7010: avoid no needed cast in ks_wlan_cap X-Git-Tag: v4.19~841^2~148 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7761114be421ae1993ce711a600e993337a6288;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index 9724a48..adc6ccf 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -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,