staging: vt6655: Remove unnecessary cast for argument of kfree
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Wed, 8 Oct 2014 15:11:48 +0000 (20:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:16 +0000 (10:29 +0800)
This patch removes all occurrences of unnecessary cast on the
argument to kfree, all over in rtl8712.

There is no need of the cast on the argument to kfree.

Greped to find occurrences.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c

index 8baeb8c4f4f1f2191d07be679313beedf413b143..1e1664ec1663f13b83e3fa01c37535e0aae88eb5 100644 (file)
@@ -1204,7 +1204,7 @@ static void device_free_rd0_ring(struct vnt_private *pDevice)
 
                dev_kfree_skb(pRDInfo->skb);
 
-               kfree((void *)pDesc->pRDInfo);
+               kfree(pDesc->pRDInfo);
        }
 }
 
@@ -1221,7 +1221,7 @@ static void device_free_rd1_ring(struct vnt_private *pDevice)
 
                dev_kfree_skb(pRDInfo->skb);
 
-               kfree((void *)pDesc->pRDInfo);
+               kfree(pDesc->pRDInfo);
        }
 }
 
@@ -1305,7 +1305,7 @@ static void device_free_td0_ring(struct vnt_private *pDevice)
                if (pTDInfo->skb)
                        dev_kfree_skb(pTDInfo->skb);
 
-               kfree((void *)pDesc->pTDInfo);
+               kfree(pDesc->pTDInfo);
        }
 }
 
@@ -1324,7 +1324,7 @@ static void device_free_td1_ring(struct vnt_private *pDevice)
                if (pTDInfo->skb)
                        dev_kfree_skb(pTDInfo->skb);
 
-               kfree((void *)pDesc->pTDInfo);
+               kfree(pDesc->pTDInfo);
        }
 }