From: Shivani Bhardwaj Date: Wed, 14 Oct 2015 12:02:58 +0000 (+0530) Subject: Staging: rtl8712: os_intfs: Remove unnecessary cast X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=adc6b375aae108cf03aa42d4e39e42a08be4e9a8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging: rtl8712: os_intfs: Remove unnecessary cast Explicit type conversions are not required and so, they should be removed. Semantic patch used: @@ type T; T e; identifier x; @@ * T x = (T)e; Signed-off-by: Shivani Bhardwaj Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8712/os_intfs.c b/drivers/staging/rtl8712/os_intfs.c index f34a9635217b..6805f79ae00a 100644 --- a/drivers/staging/rtl8712/os_intfs.c +++ b/drivers/staging/rtl8712/os_intfs.c @@ -333,7 +333,7 @@ u8 r8712_init_drv_sw(struct _adapter *padapter) u8 r8712_free_drv_sw(struct _adapter *padapter) { - struct net_device *pnetdev = (struct net_device *)padapter->pnetdev; + struct net_device *pnetdev = padapter->pnetdev; r8712_free_cmd_priv(&padapter->cmdpriv); r8712_free_evt_priv(&padapter->evtpriv);