[OPW,kernel,01/13] staging: rtl8187se: (foo*) should be (foo *)
diff mbox

Message ID 1382316061-31542-2-git-send-email-teobaluta@gmail.com
State New, archived
Headers show

Commit Message

Teodora Baluta Oct. 21, 2013, 12:40 a.m. UTC
Fix checkpatch error:

ERROR: "(foo*)" should be "(foo *)"

Signed-off-by: Teodora Baluta <teobaluta@gmail.com>
---
 drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Josh Triplett Oct. 21, 2013, 6:57 p.m. UTC | #1
On Mon, Oct 21, 2013 at 03:40:49AM +0300, Teodora Baluta wrote:
> Fix checkpatch error:
> 
> ERROR: "(foo*)" should be "(foo *)"
> 
> Signed-off-by: Teodora Baluta <teobaluta@gmail.com>

Reviewed-by: Josh Triplett <josh@joshtriplett.org>

>  drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
> index 490dee0..3e3b1b4 100644
> --- a/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
> +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
> @@ -245,7 +245,7 @@ static struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size,
>  	struct ieee80211_txb *txb;
>  	int i;
>  	txb = kmalloc(
> -		sizeof(struct ieee80211_txb) + (sizeof(u8*) * nr_frags),
> +		sizeof(struct ieee80211_txb) + (sizeof(u8 *) * nr_frags),
>  		gfp_mask);
>  	if (!txb)
>  		return NULL;
> @@ -275,7 +275,7 @@ static struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size,
>  static int
>  ieee80211_classify(struct sk_buff *skb, struct ieee80211_network *network)
>  {
> -  struct ether_header *eh = (struct ether_header*)skb->data;
> +  struct ether_header *eh = (struct ether_header *)skb->data;
>    unsigned int wme_UP = 0;
>  
>    if(!network->QoS_Enable) {
> @@ -284,7 +284,7 @@ ieee80211_classify(struct sk_buff *skb, struct ieee80211_network *network)
>    }
>  
>    if(eh->ether_type == __constant_htons(ETHERTYPE_IP)) {
> -    const struct iphdr *ih = (struct iphdr*)(skb->data + \
> +    const struct iphdr *ih = (struct iphdr *)(skb->data + \
>  		    sizeof(struct ether_header));
>      wme_UP = (ih->tos >> 5)&0x07;
>    } else if (vlan_tx_tag_present(skb)) {//vtag packet
> -- 
> 1.7.10.4
> 
> -- 
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Patch
diff mbox

diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
index 490dee0..3e3b1b4 100644
--- a/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
+++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
@@ -245,7 +245,7 @@  static struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size,
 	struct ieee80211_txb *txb;
 	int i;
 	txb = kmalloc(
-		sizeof(struct ieee80211_txb) + (sizeof(u8*) * nr_frags),
+		sizeof(struct ieee80211_txb) + (sizeof(u8 *) * nr_frags),
 		gfp_mask);
 	if (!txb)
 		return NULL;
@@ -275,7 +275,7 @@  static struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size,
 static int
 ieee80211_classify(struct sk_buff *skb, struct ieee80211_network *network)
 {
-  struct ether_header *eh = (struct ether_header*)skb->data;
+  struct ether_header *eh = (struct ether_header *)skb->data;
   unsigned int wme_UP = 0;
 
   if(!network->QoS_Enable) {
@@ -284,7 +284,7 @@  ieee80211_classify(struct sk_buff *skb, struct ieee80211_network *network)
   }
 
   if(eh->ether_type == __constant_htons(ETHERTYPE_IP)) {
-    const struct iphdr *ih = (struct iphdr*)(skb->data + \
+    const struct iphdr *ih = (struct iphdr *)(skb->data + \
 		    sizeof(struct ether_header));
     wme_UP = (ih->tos >> 5)&0x07;
   } else if (vlan_tx_tag_present(skb)) {//vtag packet