[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120926064950.GB4587@mwanda>
Date: Wed, 26 Sep 2012 09:49:51 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Ilya gorskin <revent82@...il.com>
Cc: gregkh@...uxfoundation.org, forest@...ttletooquiet.net,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging:vt6656: Fix tabs error in 80211mgr.c
On Wed, Sep 26, 2012 at 12:05:11PM +0600, Ilya gorskin wrote:
> This is a patch to the 80211mgr.c file that fixes up a tabs
> error found by the checkpatch.pl tool
>
> Signed-off-by: Goirskin Ilya <revent82@...il.com>
> ---
> drivers/staging/vt6656/80211mgr.c | 628 +++++++++++++++++++-------------------
> 1 file changed, 310 insertions(+), 318 deletions(-)
>
> diff --git a/drivers/staging/vt6656/80211mgr.c b/drivers/staging/vt6656/80211mgr.c
> index 39f9842..4241d29 100644
> --- a/drivers/staging/vt6656/80211mgr.c
> +++ b/drivers/staging/vt6656/80211mgr.c
> @@ -98,11 +98,11 @@ vMgrEncodeBeacon(
>
> /* Fixed Fields */
> pFrame->pqwTimestamp = (PQWORD)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3))
> - + WLAN_BEACON_OFF_TS);
> + + WLAN_BEACON_OFF_TS);
This was aligned correctly in the original. (Although the line is
messy so it explains why you were confused).
> pFrame->pwBeaconInterval = (PWORD)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3))
> - + WLAN_BEACON_OFF_BCN_INT);
> + + WLAN_BEACON_OFF_BCN_INT);
> pFrame->pwCapInfo = (PWORD)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3))
> - + WLAN_BEACON_OFF_CAPINFO);
> + + WLAN_BEACON_OFF_CAPINFO);
>
> pFrame->len = WLAN_HDR_ADDR3_LEN + WLAN_BEACON_OFF_SSID;
>
> @@ -132,98 +132,90 @@ vMgrDecodeBeacon(
>
> /* Fixed Fields */
> pFrame->pqwTimestamp = (PQWORD)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3))
> - + WLAN_BEACON_OFF_TS);
> + + WLAN_BEACON_OFF_TS);
> pFrame->pwBeaconInterval = (PWORD)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3))
> - + WLAN_BEACON_OFF_BCN_INT);
> + + WLAN_BEACON_OFF_BCN_INT);
> pFrame->pwCapInfo = (PWORD)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3))
> - + WLAN_BEACON_OFF_CAPINFO);
> + + WLAN_BEACON_OFF_CAPINFO);
>
> /* Information elements */
> pItem = (PWLAN_IE)((PBYTE)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3)))
> - + WLAN_BEACON_OFF_SSID);
> + + WLAN_BEACON_OFF_SSID);
Actually all of these were more correct in the original.
Ah. I see the problem. The original used spaces. Still the
alignment was better. It should be:
[tab] [tab] [tab] [space] [space]
You're allowed to use spaces to get the alignment to work.
Really the '+' should probably be on the line before. But it's not
worth sending a patch over.
> pFrame->pwCapInfo = (PWORD)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3))
> - + WLAN_REASSOCREQ_OFF_CAP_INFO);
> + + WLAN_REASSOCREQ_OFF_CAP_INFO);
> pFrame->pwListenInterval = (PWORD)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3))
> - + WLAN_REASSOCREQ_OFF_LISTEN_INT);
> + + WLAN_REASSOCREQ_OFF_LISTEN_INT);
Really??? I'm not a huge fan of the 80 character line limit, but at
least the left side of the line should be within the 80 characters.
Yeah. This patch is going nowhere.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists