Prev: [PATCH 2/4] staging: rtl8192u: fix checkpatch.pl issues to line 3200 Fix most problems pointed out by checkpatch.pl in file r8192U_core.c up to line 3200
Next: only drop root anon_vma if not self
From: Mike Gilks on 9 Jun 2010 21:20 Signed-off-by: Mike Gilks <mike.kernel(a)gilksonline.com> --- drivers/staging/rtl8192u/r8192U_core.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 14ef649..6f20518 100644 --- a/drivers/staging/rtl8192u/r8192U_core.c +++ b/drivers/staging/rtl8192u/r8192U_core.c @@ -3410,13 +3410,13 @@ short rtl8192_init(struct net_device *dev) struct r8192_priv *priv = ieee80211_priv(dev); - memset(&(priv->stats),0,sizeof(struct Stats)); - memset(priv->txqueue_to_outpipemap,0,9); + memset(&(priv->stats), 0, sizeof(struct Stats)); + memset(priv->txqueue_to_outpipemap, 0, 9); #ifdef PIPE12 { int i = 0; - u8 queuetopipe[]={3, 2, 1, 0, 4, 8, 7, 6, 5}; - memcpy(priv->txqueue_to_outpipemap,queuetopipe, 9); + u8 queuetopipe[] = {3, 2, 1, 0, 4, 8, 7, 6, 5}; + memcpy(priv->txqueue_to_outpipemap, queuetopipe, 9); /* for(i = 0; i < 9; i++) * printk("%d ", priv->txqueue_to_outpipemap[i]); *printk("\n"); @@ -3424,8 +3424,8 @@ short rtl8192_init(struct net_device *dev) } #else { - u8 queuetopipe[]={3, 2, 1, 0, 4, 4, 0, 4, 4}; - memcpy(priv->txqueue_to_outpipemap,queuetopipe, 9); + u8 queuetopipe[] = {3, 2, 1, 0, 4, 4, 0, 4, 4}; + memcpy(priv->txqueue_to_outpipemap, queuetopipe, 9); /* for(i = 0; i < 9; i++) * printk("%d ", priv->txqueue_to_outpipemap[i]); *printk("\n"); @@ -3442,7 +3442,7 @@ short rtl8192_init(struct net_device *dev) init_timer(&priv->watch_dog_timer); priv->watch_dog_timer.data = (unsigned long)dev; priv->watch_dog_timer.function = watch_dog_timer_callback; - if(rtl8192_usb_initendpoints(dev)!=0){ + if (rtl8192_usb_initendpoints(dev) != 0) { DMESG("Endopoints initialization failed"); return -ENOMEM; } @@ -3463,7 +3463,7 @@ short rtl8192_init(struct net_device *dev) * notice: This part need to modified according to the rate set we filtered * **************************************************************************** */ -void rtl8192_hwconfig(struct net_device* dev) +void rtl8192_hwconfig(struct net_device *dev) { u32 regRATR = 0, regRRSR = 0; u8 regBwOpMode = 0, regTmp = 0; @@ -3477,7 +3477,7 @@ void rtl8192_hwconfig(struct net_device* dev) regRRSR = RATE_ALL_CCK; break; case WIRELESS_MODE_A: - regBwOpMode = BW_OPMODE_5G |BW_OPMODE_20MHZ; + regBwOpMode = BW_OPMODE_5G | BW_OPMODE_20MHZ; regRATR = RATE_ALL_OFDM_AG; regRRSR = RATE_ALL_OFDM_AG; break; -- 1.6.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |