lkml.org 
[lkml]   [2012]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH][Trivial] staging: vt6656: Remove some redundant casts and parentheses + other style cleanups
From
Date
On Mon, 2012-04-16 at 23:20 +0200, Jesper Juhl wrote:
> This is just a small/trivial cleanup patch. It makes the following
> changes to drivers/staging/vt6656/ioctl.c:
>
> 1. Remove some redundant casts.

drivers/staging/vt6656/wcmd.h:BOOL bScheduleCommand(void *hDeviceContext,

so you could remove the casts of the first argument too.

> diff --git a/drivers/staging/vt6656/ioctl.c b/drivers/staging/vt6656/ioctl.c
[]
> @@ -101,7 +101,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
> WLAN_CMD_BSSID_SCAN,
> abyScanSSID);
> else
> - bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, NULL);
> + bScheduleCommand((void *)pDevice, WLAN_CMD_BSSID_SCAN, NULL);

bScheduleCommand(pDevice, WLAN_CMD_BSSID_SCAN, NULL);
[]
> @@ -190,10 +191,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((void *)pDevice, WLAN_CMD_BSSID_SCAN,
> pMgmt->abyDesireSSID);
bScheduleCommand(pDevice, WLAN_CMD_BSSID_SCAN,
pMgmt->abyDesireSSID);
etc




\
 
 \ /
  Last update: 2012-04-18 22:37    [W:1.785 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site