Staging: rtl8188eu: rf_cfg: Remove useless cast
authorShivani Bhardwaj <shivanib134@gmail.com>
Wed, 14 Oct 2015 18:51:11 +0000 (00:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:51:48 +0000 (22:51 -0700)
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>
drivers/staging/rtl8188eu/hal/rf_cfg.c

index 954cade478db37b3a0394ec1dc37f9b5925fe336..067649a7fbec1821556bce15582a22bde1ad9341 100644 (file)
@@ -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,