mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Staging: wlan-ng: fix brace coding style issue in prism2fw.c
@ 2011-06-13 16:44 Joseph Salisbury
  2011-07-05 17:21 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph Salisbury @ 2011-06-13 16:44 UTC (permalink / raw)
  To: gregkh; +Cc: devel, linux-kernel, Joseph Salisbury, Joseph Salisbury

From: Joseph Salisbury <salisbury.joseph@googlemail.com>

This is a patch to the prism2fw.c file that fixes up a brace
warning found by the checkpatch.pl tool.

Signed-off-by: Joseph Salisbury <salisbury.joseph@gmail.com>
---
 drivers/staging/wlan-ng/prism2fw.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/wlan-ng/prism2fw.c b/drivers/staging/wlan-ng/prism2fw.c
index 729d03d..3c40096 100644
--- a/drivers/staging/wlan-ng/prism2fw.c
+++ b/drivers/staging/wlan-ng/prism2fw.c
@@ -442,9 +442,9 @@ int crcimage(struct imgchunk *fchunk, unsigned int nfchunks,
 void free_chunks(struct imgchunk *fchunk, unsigned int *nfchunks)
 {
 	int i;
-	for (i = 0; i < *nfchunks; i++) {
+	for (i = 0; i < *nfchunks; i++)
 		kfree(fchunk[i].data);
-	}
+
 	*nfchunks = 0;
 	memset(fchunk, 0, sizeof(*fchunk));
 
-- 
1.7.4.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Staging: wlan-ng: fix brace coding style issue in prism2fw.c
  2011-06-13 16:44 [PATCH] Staging: wlan-ng: fix brace coding style issue in prism2fw.c Joseph Salisbury
@ 2011-07-05 17:21 ` Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2011-07-05 17:21 UTC (permalink / raw)
  To: Joseph Salisbury; +Cc: gregkh, devel, Joseph Salisbury, linux-kernel

On Mon, Jun 13, 2011 at 05:44:55PM +0100, Joseph Salisbury wrote:
> From: Joseph Salisbury <salisbury.joseph@googlemail.com>
> 
> This is a patch to the prism2fw.c file that fixes up a brace
> warning found by the checkpatch.pl tool.
> 
> Signed-off-by: Joseph Salisbury <salisbury.joseph@gmail.com>
> ---

Sorry, this patch was already submitted by someone else first.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] Staging: wlan-ng: fix brace coding style issue in prism2fw.c
@ 2011-06-05 16:28 Joseph Salisbury
  0 siblings, 0 replies; 3+ messages in thread
From: Joseph Salisbury @ 2011-06-05 16:28 UTC (permalink / raw)
  To: gregkh; +Cc: devel, linux-kernel, Joseph Salisbury, Joseph Salisbury

From: Joseph Salisbury <salisbury.joseph@googlemail.com>

This is a patch to the prism2fw.c file that fixes up a brace
warning found by the checkpatch.pl tool.

Signed-off-by: Joseph Salisbury <salisbury.joseph@gmail.com>
---
 drivers/staging/wlan-ng/prism2fw.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/wlan-ng/prism2fw.c b/drivers/staging/wlan-ng/prism2fw.c
index 729d03d..3c40096 100644
--- a/drivers/staging/wlan-ng/prism2fw.c
+++ b/drivers/staging/wlan-ng/prism2fw.c
@@ -442,9 +442,9 @@ int crcimage(struct imgchunk *fchunk, unsigned int nfchunks,
 void free_chunks(struct imgchunk *fchunk, unsigned int *nfchunks)
 {
 	int i;
-	for (i = 0; i < *nfchunks; i++) {
+	for (i = 0; i < *nfchunks; i++)
 		kfree(fchunk[i].data);
-	}
+
 	*nfchunks = 0;
 	memset(fchunk, 0, sizeof(*fchunk));
 
-- 
1.7.4.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-05 17:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-13 16:44 [PATCH] Staging: wlan-ng: fix brace coding style issue in prism2fw.c Joseph Salisbury
2011-07-05 17:21 ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2011-06-05 16:28 Joseph Salisbury

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome