summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu
diff options
context:
space:
mode:
authorShivani Bhardwaj2015-10-14 20:51:11 +0200
committerGreg Kroah-Hartman2015-10-17 07:51:48 +0200
commit96c35228559a6e9ec14cb494a3f6807b9f755c50 (patch)
tree5fcf12914d268218980cbe74a94084c732708a98 /drivers/staging/rtl8188eu
parentstaging/dgnc: fix info leak in ioctl (diff)
downloadkernel-qcow2-linux-96c35228559a6e9ec14cb494a3f6807b9f755c50.tar.gz
kernel-qcow2-linux-96c35228559a6e9ec14cb494a3f6807b9f755c50.tar.xz
kernel-qcow2-linux-96c35228559a6e9ec14cb494a3f6807b9f755c50.zip
Staging: rtl8188eu: rf_cfg: Remove useless cast
Type conversion of variables can be done by compiler implicitly so, explicit conversions should be removed. Semantic patch used: @@ type T; T e; identifier x; @@ * T x = (T)e; Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com> Reviewed-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r--drivers/staging/rtl8188eu/hal/rf_cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/hal/rf_cfg.c b/drivers/staging/rtl8188eu/hal/rf_cfg.c
index 954cade478db..067649a7fbec 100644
--- a/drivers/staging/rtl8188eu/hal/rf_cfg.c
+++ b/drivers/staging/rtl8188eu/hal/rf_cfg.c
@@ -188,7 +188,7 @@ static void rtl8188e_config_rf_reg(struct adapter *adapt,
u32 addr, u32 data)
{
u32 content = 0x1000; /*RF Content: radio_a_txt*/
- u32 maskforphyset = (u32)(content & 0xE000);
+ u32 maskforphyset = content & 0xE000;
rtl_rfreg_delay(adapt, RF90_PATH_A, addr | maskforphyset,
RFREG_OFFSET_MASK,