mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] staging: vt6656: cleanup
@ 2014-08-10 22:23 Ragnar B. Johannsson
  2014-08-10 22:23 ` [PATCH 1/3] staging: vt6656: remove unnecessary braces Ragnar B. Johannsson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ragnar B. Johannsson @ 2014-08-10 22:23 UTC (permalink / raw)
  To: forest, gregkh, tvboxspy; +Cc: devel, linux-kernel, Ragnar B. Johannsson

This patchset fixes a few small coding style problems as reported by checkpatch.

Ragnar B. Johannsson (3):
  staging: vt6656: remove unnecessary braces
  staging: vt6656: fix incorrect indentation
  staging: vt6656: add blank line after declaration

 drivers/staging/vt6656/rxtx.c    | 3 ++-
 drivers/staging/vt6656/usbpipe.c | 5 ++---
 2 files changed, 4 insertions(+), 4 deletions(-)

-- 
1.9.3


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

* [PATCH 1/3] staging: vt6656: remove unnecessary braces
  2014-08-10 22:23 [PATCH 0/3] staging: vt6656: cleanup Ragnar B. Johannsson
@ 2014-08-10 22:23 ` Ragnar B. Johannsson
  2014-08-10 22:23 ` [PATCH 2/3] staging: vt6656: fix incorrect indentation Ragnar B. Johannsson
  2014-08-10 22:23 ` [PATCH 3/3] staging: vt6656: add blank line after declaration Ragnar B. Johannsson
  2 siblings, 0 replies; 4+ messages in thread
From: Ragnar B. Johannsson @ 2014-08-10 22:23 UTC (permalink / raw)
  To: forest, gregkh, tvboxspy; +Cc: devel, linux-kernel, Ragnar B. Johannsson

Removes unnecessary braces to comply with coding style.

Signed-off-by: Ragnar B. Johannsson <ragnar@igo.is>
---
 drivers/staging/vt6656/usbpipe.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c
index cba6532..88bf518 100644
--- a/drivers/staging/vt6656/usbpipe.c
+++ b/drivers/staging/vt6656/usbpipe.c
@@ -131,11 +131,10 @@ static void vnt_start_interrupt_urb_complete(struct urb *urb)
 	}
 
 	status = usb_submit_urb(priv->interrupt_urb, GFP_ATOMIC);
-	if (status) {
+	if (status)
 		dev_dbg(&priv->usb->dev, "Submit int URB failed %d\n", status);
-	} else {
+	else
 		priv->int_buf.in_use = true;
-	}
 }
 
 int vnt_start_interrupt_urb(struct vnt_private *priv)
-- 
1.9.3


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

* [PATCH 2/3] staging: vt6656: fix incorrect indentation
  2014-08-10 22:23 [PATCH 0/3] staging: vt6656: cleanup Ragnar B. Johannsson
  2014-08-10 22:23 ` [PATCH 1/3] staging: vt6656: remove unnecessary braces Ragnar B. Johannsson
@ 2014-08-10 22:23 ` Ragnar B. Johannsson
  2014-08-10 22:23 ` [PATCH 3/3] staging: vt6656: add blank line after declaration Ragnar B. Johannsson
  2 siblings, 0 replies; 4+ messages in thread
From: Ragnar B. Johannsson @ 2014-08-10 22:23 UTC (permalink / raw)
  To: forest, gregkh, tvboxspy; +Cc: devel, linux-kernel, Ragnar B. Johannsson

Use tabs, not spaces.

Signed-off-by: Ragnar B. Johannsson <ragnar@igo.is>
---
 drivers/staging/vt6656/rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c
index 2d1ef88..08ce18d 100644
--- a/drivers/staging/vt6656/rxtx.c
+++ b/drivers/staging/vt6656/rxtx.c
@@ -573,7 +573,7 @@ static u16 vnt_fill_cts_head(struct vnt_usb_send_context *tx_context,
 		memcpy(buf->data.ra, priv->current_net_addr, ETH_ALEN);
 
 		return vnt_rxtx_datahead_g(tx_context, &buf->data_head);
-        }
+	}
 
 	return 0;
 }
-- 
1.9.3


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

* [PATCH 3/3] staging: vt6656: add blank line after declaration
  2014-08-10 22:23 [PATCH 0/3] staging: vt6656: cleanup Ragnar B. Johannsson
  2014-08-10 22:23 ` [PATCH 1/3] staging: vt6656: remove unnecessary braces Ragnar B. Johannsson
  2014-08-10 22:23 ` [PATCH 2/3] staging: vt6656: fix incorrect indentation Ragnar B. Johannsson
@ 2014-08-10 22:23 ` Ragnar B. Johannsson
  2 siblings, 0 replies; 4+ messages in thread
From: Ragnar B. Johannsson @ 2014-08-10 22:23 UTC (permalink / raw)
  To: forest, gregkh, tvboxspy; +Cc: devel, linux-kernel, Ragnar B. Johannsson

Adds a blank line after declaration to comply with coding style.

Signed-off-by: Ragnar B. Johannsson <ragnar@igo.is>
---
 drivers/staging/vt6656/rxtx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c
index 08ce18d..852ebe8 100644
--- a/drivers/staging/vt6656/rxtx.c
+++ b/drivers/staging/vt6656/rxtx.c
@@ -1036,6 +1036,7 @@ static int vnt_beacon_xmit(struct vnt_private *priv,
 	info = IEEE80211_SKB_CB(skb);
 	if (info->flags & IEEE80211_TX_CTL_ASSIGN_SEQ) {
 		struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)mgmt_hdr;
+
 		hdr->duration_id = 0;
 		hdr->seq_ctrl = cpu_to_le16(priv->seq_counter << 4);
 	}
-- 
1.9.3


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

end of thread, other threads:[~2014-08-13  5:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-10 22:23 [PATCH 0/3] staging: vt6656: cleanup Ragnar B. Johannsson
2014-08-10 22:23 ` [PATCH 1/3] staging: vt6656: remove unnecessary braces Ragnar B. Johannsson
2014-08-10 22:23 ` [PATCH 2/3] staging: vt6656: fix incorrect indentation Ragnar B. Johannsson
2014-08-10 22:23 ` [PATCH 3/3] staging: vt6656: add blank line after declaration Ragnar B. Johannsson

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

all inboxes | Powered by JetHome®