Skip to contentSkip to conversation

staging: vt6656: cleanup

PATCH New Ragnar B. Johannsson 1 participant 4 messages Aug 13, 2014 Staging

lore
Share & tools
lore
#0 lore raw

cover staging: vt6656: cleanup

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(-)
Signature · 1 line
1.9.3
#1 lore raw

PATCH 1/3 staging: vt6656: remove unnecessary braces

Removes unnecessary braces to comply with coding style.

---
 drivers/staging/vt6656/usbpipe.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/staging/vt6656/usbpipe.c +2 -3
index cba6532..88bf518 100644
@@ -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)
Signature · 1 line
1.9.3
#2 lore raw

PATCH 2/3 staging: vt6656: fix incorrect indentation

In reply to Ragnar B. Johannsson

Use tabs, not spaces.

---
 drivers/staging/vt6656/rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vt6656/rxtx.c +1 -1
index 2d1ef88..08ce18d 100644
@@ -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;
 }
Signature · 1 line
1.9.3
#3 lore raw

PATCH 3/3 staging: vt6656: add blank line after declaration

In reply to Ragnar B. Johannsson

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

---
 drivers/staging/vt6656/rxtx.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/vt6656/rxtx.c +1 -0
index 08ce18d..852ebe8 100644
@@ -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);
 	}
Signature · 1 line
1.9.3