aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6656
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2012-04-21 16:04:30 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-24 14:37:05 -0400
commit62ef30b5781d836aa756fb5fa6de4f660fd6f9a2 (patch)
tree36fa253ff142eacfa90f51d50cb3a3294f949b1a /drivers/staging/vt6656
parentc25626871c082432ae265594d4b336ccbeec4120 (diff)
staging: vt6656: Remove redundant casts from ioctl.c
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>
Diffstat (limited to 'drivers/staging/vt6656')
-rw-r--r--drivers/staging/vt6656/ioctl.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/staging/vt6656/ioctl.c b/drivers/staging/vt6656/ioctl.c
index 1463d76895f..d8b9f1dd6c2 100644
--- a/drivers/staging/vt6656/ioctl.c
+++ b/drivers/staging/vt6656/ioctl.c
@@ -90,18 +90,17 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
90 spin_lock_irq(&pDevice->lock); 90 spin_lock_irq(&pDevice->lock);
91 91
92 if (memcmp(pMgmt->abyCurrBSSID, &abyNullAddr[0], 6) == 0) 92 if (memcmp(pMgmt->abyCurrBSSID, &abyNullAddr[0], 6) == 0)
93 BSSvClearBSSList((void *)pDevice, FALSE); 93 BSSvClearBSSList(pDevice, FALSE);
94 else 94 else
95 BSSvClearBSSList((void *)pDevice, pDevice->bLinkPass); 95 BSSvClearBSSList(pDevice, pDevice->bLinkPass);
96 96
97 DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "WLAN_CMD_BSS_SCAN..begin\n"); 97 DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "WLAN_CMD_BSS_SCAN..begin\n");
98 98
99 if (pItemSSID->len != 0) 99 if (pItemSSID->len != 0)
100 bScheduleCommand((void *)pDevice, 100 bScheduleCommand(pDevice, WLAN_CMD_BSSID_SCAN,
101 WLAN_CMD_BSSID_SCAN,
102 abyScanSSID); 101 abyScanSSID);
103 else 102 else
104 bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, NULL); 103 bScheduleCommand(pDevice, WLAN_CMD_BSSID_SCAN, NULL);
105 104
106 spin_unlock_irq(&pDevice->lock); 105 spin_unlock_irq(&pDevice->lock);
107 break; 106 break;
@@ -190,10 +189,9 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
190 netif_stop_queue(pDevice->dev); 189 netif_stop_queue(pDevice->dev);
191 spin_lock_irq(&pDevice->lock); 190 spin_lock_irq(&pDevice->lock);
192 pMgmt->eCurrState = WMAC_STATE_IDLE; 191 pMgmt->eCurrState = WMAC_STATE_IDLE;
193 bScheduleCommand((void *) pDevice, 192 bScheduleCommand(pDevice, WLAN_CMD_BSSID_SCAN,
194 WLAN_CMD_BSSID_SCAN,
195 pMgmt->abyDesireSSID); 193 pMgmt->abyDesireSSID);
196 bScheduleCommand((void *) pDevice, WLAN_CMD_SSID, NULL); 194 bScheduleCommand(pDevice, WLAN_CMD_SSID, NULL);
197 spin_unlock_irq(&pDevice->lock); 195 spin_unlock_irq(&pDevice->lock);
198 break; 196 break;
199 197
@@ -299,7 +297,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
299 result = -EINVAL; 297 result = -EINVAL;
300 break; 298 break;
301 } 299 }
302 pList = (PSBSSIDList)kmalloc(sizeof(SBSSIDList) + (sList.uItem * sizeof(SBSSIDItem)), (int)GFP_ATOMIC); 300 pList = kmalloc(sizeof(SBSSIDList) + (sList.uItem * sizeof(SBSSIDItem)), GFP_ATOMIC);
303 if (pList == NULL) { 301 if (pList == NULL) {
304 result = -ENOMEM; 302 result = -ENOMEM;
305 break; 303 break;
@@ -534,7 +532,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
534 532
535 netif_stop_queue(pDevice->dev); 533 netif_stop_queue(pDevice->dev);
536 spin_lock_irq(&pDevice->lock); 534 spin_lock_irq(&pDevice->lock);
537 bScheduleCommand((void *)pDevice, WLAN_CMD_RUN_AP, NULL); 535 bScheduleCommand(pDevice, WLAN_CMD_RUN_AP, NULL);
538 spin_unlock_irq(&pDevice->lock); 536 spin_unlock_irq(&pDevice->lock);
539 break; 537 break;
540 538
@@ -565,7 +563,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
565 result = -ENOMEM; 563 result = -ENOMEM;
566 break; 564 break;
567 } 565 }
568 pNodeList = (PSNodeList)kmalloc(sizeof(SNodeList) + (sNodeList.uItem * sizeof(SNodeItem)), (int)GFP_ATOMIC); 566 pNodeList = (PSNodeList)kmalloc(sizeof(SNodeList) + (sNodeList.uItem * sizeof(SNodeItem)), GFP_ATOMIC);
569 if (pNodeList == NULL) { 567 if (pNodeList == NULL) {
570 result = -ENOMEM; 568 result = -ENOMEM;
571 break; 569 break;