]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
staging: vt6656: Remove redundant casts from ioctl.c
authorJesper Juhl <jj@chaosbits.net>
Sat, 21 Apr 2012 20:04:30 +0000 (22:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2012 18:37:05 +0000 (11:37 -0700)
Remove some unneeded explicit casts from
drivers/staging/vt6656/ioctl.c

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/ioctl.c

index 1463d76895f023fe339d3ea8cf3a67a16544706f..d8b9f1dd6c25cd4b87f00b5112ccf8ec5b29e191 100644 (file)
@@ -90,18 +90,17 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
                spin_lock_irq(&pDevice->lock);
 
                if (memcmp(pMgmt->abyCurrBSSID, &abyNullAddr[0], 6) == 0)
-                       BSSvClearBSSList((void *)pDevice, FALSE);
+                       BSSvClearBSSList(pDevice, FALSE);
                else
-                       BSSvClearBSSList((void *)pDevice, pDevice->bLinkPass);
+                       BSSvClearBSSList(pDevice, pDevice->bLinkPass);
 
                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "WLAN_CMD_BSS_SCAN..begin\n");
 
                if (pItemSSID->len != 0)
-                       bScheduleCommand((void *)pDevice,
-                                        WLAN_CMD_BSSID_SCAN,
+                       bScheduleCommand(pDevice, WLAN_CMD_BSSID_SCAN,
                                         abyScanSSID);
                else
-                       bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, NULL);
+                       bScheduleCommand(pDevice, WLAN_CMD_BSSID_SCAN, NULL);
 
                spin_unlock_irq(&pDevice->lock);
                break;
@@ -190,10 +189,9 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
                netif_stop_queue(pDevice->dev);
                spin_lock_irq(&pDevice->lock);
                pMgmt->eCurrState = WMAC_STATE_IDLE;
-               bScheduleCommand((void *) pDevice,
-                                WLAN_CMD_BSSID_SCAN,
+               bScheduleCommand(pDevice, WLAN_CMD_BSSID_SCAN,
                                 pMgmt->abyDesireSSID);
-               bScheduleCommand((void *) pDevice, WLAN_CMD_SSID, NULL);
+               bScheduleCommand(pDevice, WLAN_CMD_SSID, NULL);
                spin_unlock_irq(&pDevice->lock);
                break;
 
@@ -299,7 +297,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
                        result = -EINVAL;
                        break;
                }
-               pList = (PSBSSIDList)kmalloc(sizeof(SBSSIDList) + (sList.uItem * sizeof(SBSSIDItem)), (int)GFP_ATOMIC);
+               pList = kmalloc(sizeof(SBSSIDList) + (sList.uItem * sizeof(SBSSIDItem)), GFP_ATOMIC);
                if (pList == NULL) {
                        result = -ENOMEM;
                        break;
@@ -534,7 +532,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
 
                netif_stop_queue(pDevice->dev);
                spin_lock_irq(&pDevice->lock);
-               bScheduleCommand((void *)pDevice, WLAN_CMD_RUN_AP, NULL);
+               bScheduleCommand(pDevice, WLAN_CMD_RUN_AP, NULL);
                spin_unlock_irq(&pDevice->lock);
                break;
 
@@ -565,7 +563,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
                        result = -ENOMEM;
                        break;
                }
-               pNodeList = (PSNodeList)kmalloc(sizeof(SNodeList) + (sNodeList.uItem * sizeof(SNodeItem)), (int)GFP_ATOMIC);
+               pNodeList = (PSNodeList)kmalloc(sizeof(SNodeList) + (sNodeList.uItem * sizeof(SNodeItem)), GFP_ATOMIC);
                if (pNodeList == NULL) {
                        result = -ENOMEM;
                        break;