* [PATCH] dscc4: fix dscc4_init_dummy_skb check
@ 2006-01-25 0:41 Alexey Dobriyan
2006-01-30 0:26 ` Francois Romieu
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2006-01-25 0:41 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel, romieu
It returns a pointer.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
drivers/net/wan/dscc4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/net/wan/dscc4.c
+++ b/drivers/net/wan/dscc4.c
@@ -1943,7 +1943,7 @@ static int dscc4_init_ring(struct net_de
(++i%TX_RING_SIZE)*sizeof(*tx_fd));
} while (i < TX_RING_SIZE);
- if (dscc4_init_dummy_skb(dpriv) < 0)
+ if (!dscc4_init_dummy_skb(dpriv))
goto err_free_dma_tx;
memset(dpriv->rx_skbuff, 0, sizeof(struct sk_buff *)*RX_RING_SIZE);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-30 0:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-25 0:41 [PATCH] dscc4: fix dscc4_init_dummy_skb check Alexey Dobriyan
2006-01-30 0:26 ` Francois Romieu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).