summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVatika Harlalka <vatikaharlalka@gmail.com>2015-03-09 14:24:42 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-09 13:37:22 +0100
commit8d0514d5631d8ded3fe42c3a16727039b576f18c (patch)
treed74676dcbc27c2adb3e7d7e984cb50fd1290544b
parentc89ca085a5b287acd3bbf35d4cb6be392ae0798f (diff)
downloadlinux-8d0514d5631d8ded3fe42c3a16727039b576f18c.tar.bz2
Staging rtl8172: Remove unnecessary typecast
Using addressof and then casting to the original type is unneeded. So these casts can be removed. Issue detected via Coccinelle script. Signed-off-by: Vatika Harlalka <vatikaharlalka@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8712/hal_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8712/hal_init.c b/drivers/staging/rtl8712/hal_init.c
index 324da34383ea..0a1c6313e781 100644
--- a/drivers/staging/rtl8712/hal_init.c
+++ b/drivers/staging/rtl8712/hal_init.c
@@ -92,7 +92,7 @@ static u32 rtl871x_open_fw(struct _adapter *padapter, const u8 **ppmappedfw)
static void fill_fwpriv(struct _adapter *padapter, struct fw_priv *pfwpriv)
{
- struct dvobj_priv *pdvobj = (struct dvobj_priv *)&padapter->dvobjpriv;
+ struct dvobj_priv *pdvobj = &padapter->dvobjpriv;
struct registry_priv *pregpriv = &padapter->registrypriv;
memset(pfwpriv, 0, sizeof(struct fw_priv));