From d3be7229e69979656ff811b71e1c05ea74c3fbf4 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 16 Jun 2004 21:52:18 -0700 Subject: [SPARSE]: Fix another net warning. Get rid of warning from assignment in conditional. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- net/core/net-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 16baf92f6802..20f1616508b8 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -414,7 +414,7 @@ int netdev_register_sysfs(struct net_device *net) if ((ret = class_device_register(class_dev))) goto out; - for (i = 0; (attr = net_class_attributes[i]); i++) { + for (i = 0; (attr = net_class_attributes[i]) != NULL; i++) { if ((ret = class_device_create_file(class_dev, attr))) goto out_unreg; } -- cgit v1.2.3