Commit bd60ac14 authored by Shivani Bhardwaj's avatar Shivani Bhardwaj Committed by Greg Kroah-Hartman

Staging: rtl8192e: rtllib_softmac: Remove useless cast

Explicit type conversion is not required to remove it.
Semantic patch used:
@@
type T;
T e;
identifier x;
@@

* T x = (T)e;
Signed-off-by: default avatarShivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e3ce40cb
...@@ -1520,8 +1520,7 @@ static void rtllib_associate_complete_wq(void *data) ...@@ -1520,8 +1520,7 @@ static void rtllib_associate_complete_wq(void *data)
container_of_work_rsl(data, container_of_work_rsl(data,
struct rtllib_device, struct rtllib_device,
associate_complete_wq); associate_complete_wq);
struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *) struct rt_pwr_save_ctrl *pPSC = &(ieee->PowerSaveControl);
(&(ieee->PowerSaveControl));
netdev_info(ieee->dev, "Associated successfully\n"); netdev_info(ieee->dev, "Associated successfully\n");
if (!ieee->is_silent_reset) { if (!ieee->is_silent_reset) {
netdev_info(ieee->dev, "normal associate\n"); netdev_info(ieee->dev, "normal associate\n");
...@@ -1974,8 +1973,7 @@ static short rtllib_sta_ps_sleep(struct rtllib_device *ieee, u64 *time) ...@@ -1974,8 +1973,7 @@ static short rtllib_sta_ps_sleep(struct rtllib_device *ieee, u64 *time)
{ {
int timeout = ieee->ps_timeout; int timeout = ieee->ps_timeout;
u8 dtim; u8 dtim;
struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *) struct rt_pwr_save_ctrl *pPSC = &(ieee->PowerSaveControl);
(&(ieee->PowerSaveControl));
if (ieee->LPSDelayCnt) { if (ieee->LPSDelayCnt) {
ieee->LPSDelayCnt--; ieee->LPSDelayCnt--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment