staging: vt6656: cleanup
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
PATCH 1/3 staging: vt6656: remove unnecessary braces
Removes unnecessary braces to comply with coding style.
Signed-off-by Ragnar B. Johannsson <[email protected]>
--- drivers/staging/vt6656/usbpipe.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/staging/vt6656/usbpipe.c +2 -3
@@ -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
PATCH 2/3 staging: vt6656: fix incorrect indentation
In reply to Ragnar B. JohannssonUse tabs, not spaces.
Signed-off-by Ragnar B. Johannsson <[email protected]>
--- drivers/staging/vt6656/rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vt6656/rxtx.c +1 -1
@@ -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
PATCH 3/3 staging: vt6656: add blank line after declaration
In reply to Ragnar B. JohannssonAdds a blank line after declaration to comply with coding style.
Signed-off-by Ragnar B. Johannsson <[email protected]>
--- drivers/staging/vt6656/rxtx.c | 1 + 1 file changed, 1 insertion(+)
drivers/staging/vt6656/rxtx.c +1 -0
@@ -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