diff options
| author | Stephen Hemminger <shemminger@osdl.org> | 2004-06-16 21:52:18 -0700 |
|---|---|---|
| committer | David S. Miller <davem@nuts.davemloft.net> | 2004-06-16 21:52:18 -0700 |
| commit | d3be7229e69979656ff811b71e1c05ea74c3fbf4 (patch) | |
| tree | 0fef984a539b8c759375863f6edaec174a5779b6 /net/core | |
| parent | b94645495a900dee6ea49581f14e55db2afd0210 (diff) | |
[SPARSE]: Fix another net warning.
Get rid of warning from assignment in conditional.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
Diffstat (limited to 'net/core')
| -rw-r--r-- | net/core/net-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
