Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] libertas: misc cleanups in compact-flash code
@ 2008-01-28 16:24 Holger Schurig
  2008-01-28 16:36 ` Dan Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Holger Schurig @ 2008-01-28 16:24 UTC (permalink / raw)
  To: linux-wireless; +Cc: libertas-dev, Dan Williams

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>

Index: wireless-2.6/drivers/net/wireless/libertas/if_cs.c
===================================================================
--- wireless-2.6.orig/drivers/net/wireless/libertas/if_cs.c	2008-01-25 13:57:44.000000000 +0100
+++ wireless-2.6/drivers/net/wireless/libertas/if_cs.c	2008-01-25 13:58:30.000000000 +0100
@@ -396,11 +396,9 @@ static struct sk_buff *if_cs_receive_dat
 	if (len == 0 || len > MRVDRV_ETH_RX_PACKET_BUFFER_SIZE) {
 		lbs_pr_err("card data buffer has invalid # of bytes (%d)\n", len);
 		priv->stats.rx_dropped++;
-		printk(KERN_INFO "##HS %s:%d TODO\n", __FUNCTION__, __LINE__);
 		goto dat_err;
 	}
 
-	//TODO: skb = dev_alloc_skb(len+ETH_FRAME_LEN+MRVDRV_SNAP_HEADER_LEN+EXTRA_LEN);
 	skb = dev_alloc_skb(MRVDRV_ETH_RX_PACKET_BUFFER_SIZE + 2);
 	if (!skb)
 		goto out;
@@ -912,6 +910,7 @@ static void if_cs_detach(struct pcmcia_d
 	if_cs_disable_ints(card);
 	if_cs_release(p_dev);
 	kfree(card);
+	card = NULL;
 
 	lbs_deb_leave(LBS_DEB_CS);
 }

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

* Re: [PATCH] libertas: misc cleanups in compact-flash code
  2008-01-28 16:24 [PATCH] libertas: misc cleanups in compact-flash code Holger Schurig
@ 2008-01-28 16:36 ` Dan Williams
  2008-01-29  7:27   ` Holger Schurig
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Williams @ 2008-01-28 16:36 UTC (permalink / raw)
  To: Holger Schurig; +Cc: linux-wireless, libertas-dev

On Mon, 2008-01-28 at 17:24 +0100, Holger Schurig wrote:
> Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
> 
> Index: wireless-2.6/drivers/net/wireless/libertas/if_cs.c
> ===================================================================
> --- wireless-2.6.orig/drivers/net/wireless/libertas/if_cs.c	2008-01-25 13:57:44.000000000 +0100
> +++ wireless-2.6/drivers/net/wireless/libertas/if_cs.c	2008-01-25 13:58:30.000000000 +0100
> @@ -396,11 +396,9 @@ static struct sk_buff *if_cs_receive_dat
>  	if (len == 0 || len > MRVDRV_ETH_RX_PACKET_BUFFER_SIZE) {
>  		lbs_pr_err("card data buffer has invalid # of bytes (%d)\n", len);
>  		priv->stats.rx_dropped++;
> -		printk(KERN_INFO "##HS %s:%d TODO\n", __FUNCTION__, __LINE__);
>  		goto dat_err;
>  	}
>  
> -	//TODO: skb = dev_alloc_skb(len+ETH_FRAME_LEN+MRVDRV_SNAP_HEADER_LEN+EXTRA_LEN);
>  	skb = dev_alloc_skb(MRVDRV_ETH_RX_PACKET_BUFFER_SIZE + 2);
>  	if (!skb)
>  		goto out;
> @@ -912,6 +910,7 @@ static void if_cs_detach(struct pcmcia_d
>  	if_cs_disable_ints(card);
>  	if_cs_release(p_dev);
>  	kfree(card);
> +	card = NULL;

This seems kind of pointless; card is a local variable and isn't used
anywhere after this.

Dan
 
>  	lbs_deb_leave(LBS_DEB_CS);
>  }


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

* Re: [PATCH] libertas: misc cleanups in compact-flash code
  2008-01-28 16:36 ` Dan Williams
@ 2008-01-29  7:27   ` Holger Schurig
  0 siblings, 0 replies; 3+ messages in thread
From: Holger Schurig @ 2008-01-29  7:27 UTC (permalink / raw)
  To: Dan Williams; +Cc: linux-wireless, libertas-dev

> This seems kind of pointless; card is a local variable and
> isn't used anywhere after this.

Okay. I put this code in (without too much thinking) when I
chased the IRQ-at-card-removal error.

Drop the patch. When I change something else in if_cs.c, I'll
remove the TODO strings.

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

end of thread, other threads:[~2008-01-29  7:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-28 16:24 [PATCH] libertas: misc cleanups in compact-flash code Holger Schurig
2008-01-28 16:36 ` Dan Williams
2008-01-29  7:27   ` Holger Schurig

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