Staging: rtl8712: rtl8712_cmd: Remove useless cast
authorShivani Bhardwaj <shivanib134@gmail.com>
Wed, 14 Oct 2015 12:08:23 +0000 (17:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:12:30 +0000 (22:12 -0700)
Explicit type conversions are not required so, remove them.
Semantic patch used:
@@
type T;
T e;
identifier x;
@@

* T x = (T)e;

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_cmd.c

index b755ab4bd1d34df61b91f29c2e1a7800fc7084b9..f70235c8683ddef413800b4f5d29285d16a06ee0 100644 (file)
@@ -340,8 +340,7 @@ _next:
                memset(pdesc, 0, TXDESC_SIZE);
                pcmd = cmd_hdl_filter(padapter, pcmd);
                if (pcmd) { /* if pcmd != NULL, cmd will be handled by f/w */
-                       struct dvobj_priv *pdvobj = (struct dvobj_priv *)
-                                                   &padapter->dvobjpriv;
+                       struct dvobj_priv *pdvobj = &padapter->dvobjpriv;
                        u8 blnPending = 0;
 
                        pcmdpriv->cmd_issued_cnt++;