* [PATCH v3 0/2] Remove checkpatch warnings
@ 2015-10-11 19:18 Shivani Bhardwaj
2015-10-11 19:19 ` [PATCH v3 1/2] Staging: vt6655: rxtx: Remove extra space character Shivani Bhardwaj
2015-10-11 19:19 ` [PATCH v3 2/2] Staging: vt6655: rxtx: Remove extra parentheses Shivani Bhardwaj
0 siblings, 2 replies; 4+ messages in thread
From: Shivani Bhardwaj @ 2015-10-11 19:18 UTC (permalink / raw)
To: outreachy-kernel; +Cc: outreachy-kernel
This patch removes/adds extra/missing characters respectively.
After applying this patch, the file has less warnings.
Shivani Bhardwaj (2):
Staging: vt6655: rxtx: Remove extra space character
Staging: vt6655: rxtx: Remove extra parentheses
drivers/staging/vt6655/rxtx.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--
2.1.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3 1/2] Staging: vt6655: rxtx: Remove extra space character
2015-10-11 19:18 [PATCH v3 0/2] Remove checkpatch warnings Shivani Bhardwaj
@ 2015-10-11 19:19 ` Shivani Bhardwaj
2015-10-11 19:21 ` [Outreachy kernel] " Julia Lawall
2015-10-11 19:19 ` [PATCH v3 2/2] Staging: vt6655: rxtx: Remove extra parentheses Shivani Bhardwaj
1 sibling, 1 reply; 4+ messages in thread
From: Shivani Bhardwaj @ 2015-10-11 19:19 UTC (permalink / raw)
To: outreachy-kernel; +Cc: outreachy-kernel
Remove unnecessary space character after the variable RATE_16M
preserving the alignment of all other variables and comments.
Fixes the warning by checkpatch: space prohibited before
that ',' (ctx:WxW)
Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
Changes in v3:
-Make alignment of variables better.
drivers/staging/vt6655/rxtx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c
index 5875d65..0c1f6a1 100644
--- a/drivers/staging/vt6655/rxtx.c
+++ b/drivers/staging/vt6655/rxtx.c
@@ -78,7 +78,7 @@ static const unsigned short wFB_Opt0[2][5] = {
};
static const unsigned short wFB_Opt1[2][5] = {
{RATE_12M, RATE_18M, RATE_24M, RATE_24M, RATE_36M}, /* fallback_rate0 */
- {RATE_6M , RATE_6M, RATE_12M, RATE_12M, RATE_18M}, /* fallback_rate1 */
+ {RATE_6M, RATE_6M, RATE_12M, RATE_12M, RATE_18M}, /* fallback_rate1 */
};
#define RTSDUR_BB 0
--
2.1.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v3 2/2] Staging: vt6655: rxtx: Remove extra parentheses
2015-10-11 19:18 [PATCH v3 0/2] Remove checkpatch warnings Shivani Bhardwaj
2015-10-11 19:19 ` [PATCH v3 1/2] Staging: vt6655: rxtx: Remove extra space character Shivani Bhardwaj
@ 2015-10-11 19:19 ` Shivani Bhardwaj
1 sibling, 0 replies; 4+ messages in thread
From: Shivani Bhardwaj @ 2015-10-11 19:19 UTC (permalink / raw)
To: outreachy-kernel; +Cc: outreachy-kernel
Remove unnecessary parentheses around if test expressions.
Fixes checkpatch warning : unnecessary parentheses
Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
Changes in v3:
-Make alignment of variables better.
drivers/staging/vt6655/rxtx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c
index 0c1f6a1..b668db6 100644
--- a/drivers/staging/vt6655/rxtx.c
+++ b/drivers/staging/vt6655/rxtx.c
@@ -566,7 +566,7 @@ s_uFillDataHead(
return buf->duration_a;
} /* if (byFBOption == AUTO_FB_NONE) */
} else if (byPktType == PK_TYPE_11A) {
- if ((byFBOption != AUTO_FB_NONE)) {
+ if (byFBOption != AUTO_FB_NONE) {
/* Auto Fallback */
struct vnt_tx_datahead_a_fb *buf = pTxDataHead;
/* Get SignalField, ServiceField & Length */
@@ -1008,7 +1008,7 @@ s_vGenerateTxParameter(
buf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice, PK_TYPE_11A, cbFrameSize, wCurrentRate, bNeedACK);
}
} else if (byPktType == PK_TYPE_11B) {
- if ((pvRTS != NULL)) {/* RTS_need, non PCF mode */
+ if (pvRTS != NULL) {/* RTS_need, non PCF mode */
struct vnt_rrv_time_ab *buf = pvRrvTime;
buf->rts_rrv_time = s_uGetRTSCTSRsvTime(pDevice, 0, byPktType, cbFrameSize, wCurrentRate);
--
2.1.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Outreachy kernel] [PATCH v3 1/2] Staging: vt6655: rxtx: Remove extra space character
2015-10-11 19:19 ` [PATCH v3 1/2] Staging: vt6655: rxtx: Remove extra space character Shivani Bhardwaj
@ 2015-10-11 19:21 ` Julia Lawall
0 siblings, 0 replies; 4+ messages in thread
From: Julia Lawall @ 2015-10-11 19:21 UTC (permalink / raw)
To: Shivani Bhardwaj; +Cc: outreachy-kernel
On Mon, 12 Oct 2015, Shivani Bhardwaj wrote:
> Remove unnecessary space character after the variable RATE_16M
> preserving the alignment of all other variables and comments.
> Fixes the warning by checkpatch: space prohibited before
> that ',' (ctx:WxW)
>
> Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
> ---
> Changes in v3:
> -Make alignment of variables better.
>
> drivers/staging/vt6655/rxtx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c
> index 5875d65..0c1f6a1 100644
> --- a/drivers/staging/vt6655/rxtx.c
> +++ b/drivers/staging/vt6655/rxtx.c
> @@ -78,7 +78,7 @@ static const unsigned short wFB_Opt0[2][5] = {
> };
> static const unsigned short wFB_Opt1[2][5] = {
> {RATE_12M, RATE_18M, RATE_24M, RATE_24M, RATE_36M}, /* fallback_rate0 */
> - {RATE_6M , RATE_6M, RATE_12M, RATE_12M, RATE_18M}, /* fallback_rate1 */
> + {RATE_6M, RATE_6M, RATE_12M, RATE_12M, RATE_18M}, /* fallback_rate1 */
It looks nice now :)
julia
> };
>
> #define RTSDUR_BB 0
> --
> 2.1.0
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/43aba6a5182d22a3856fe326dfa8e69ff796f12d.1444590771.git.shivanib134%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-10-11 19:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-11 19:18 [PATCH v3 0/2] Remove checkpatch warnings Shivani Bhardwaj
2015-10-11 19:19 ` [PATCH v3 1/2] Staging: vt6655: rxtx: Remove extra space character Shivani Bhardwaj
2015-10-11 19:21 ` [Outreachy kernel] " Julia Lawall
2015-10-11 19:19 ` [PATCH v3 2/2] Staging: vt6655: rxtx: Remove extra parentheses Shivani Bhardwaj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.