netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-2.6.24] fix network compile warnings
@ 2007-10-05  3:10 Stephen Hemminger
  2007-10-06  0:14 ` [PATCH net-2.6.24] net: sparse warning fixes Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2007-10-05  3:10 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

One unused variable warning, and other is failure to check result.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>

--- a/drivers/infiniband/ulp/ipoib/ipoib_main.c	2007-10-04 17:40:34.000000000 -0700
+++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c	2007-10-04 17:44:33.000000000 -0700
@@ -854,8 +854,8 @@ struct ipoib_neigh *ipoib_neigh_alloc(st
 
 void ipoib_neigh_free(struct net_device *dev, struct ipoib_neigh *neigh)
 {
-	struct ipoib_dev_priv *priv = netdev_priv(dev);
 	struct sk_buff *skb;
+
 	*to_ipoib_neigh(neigh->neighbour) = NULL;
 	while ((skb = __skb_dequeue(&neigh->queue))) {
 		++dev->stats.tx_dropped;
--- a/drivers/net/cxgb3/cxgb3_main.c	2007-10-04 17:40:34.000000000 -0700
+++ b/drivers/net/cxgb3/cxgb3_main.c	2007-10-04 17:45:58.000000000 -0700
@@ -933,7 +933,8 @@ static int offload_open(struct net_devic
 	init_smt(adapter);
 
 	/* Never mind if the next step fails */
-	sysfs_create_group(&tdev->lldev->dev.kobj, &offload_attr_group);
+	if (sysfs_create_group(&tdev->lldev->dev.kobj, &offload_attr_group))
+		dev_dbg(&tdev->lldev->dev, "sysfs offload attribute create failed\n");
 
 	/* Call back all registered clients */
 	cxgb3_add_clients(tdev);

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

end of thread, other threads:[~2007-10-08 15:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-05  3:10 [PATCH net-2.6.24] fix network compile warnings Stephen Hemminger
2007-10-06  0:14 ` [PATCH net-2.6.24] net: sparse warning fixes Stephen Hemminger
2007-10-08  6:59   ` David Miller
2007-10-08 15:30     ` Stephen Hemminger

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).