]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] undeclared variable in netlink device emulation
authorPetr Vandrovec <vandrove@vc.cvut.cz>
Fri, 6 Dec 2002 12:09:50 +0000 (04:09 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 6 Dec 2002 12:09:50 +0000 (04:09 -0800)
For some strange reason I still have netlink device emulation enabled
in the kernel at home. This revealed one more missing 'int i' in Al's
devfs cleanup.

net/netlink/netlink_dev.c

index 7666f44f29f7bc3856b0ff2bf0eac667a2ba6828..76cd48d6d0cb400149e9aaa17eeb5a84796d5580 100644 (file)
@@ -225,6 +225,8 @@ int init_module(void)
 
 void cleanup_module(void)
 {
+       int i;
+
        for (i = 0; i < sizeof(entries)/sizeof(entries[0]); i++)
                devfs_remove("netlink/%s", entries[i].name);
        for (i = 0; i < 16; i++)