patch to 2.1.85: register_symtab cleanup

Trevor Johnson (trevor@jpj.net)
Wed, 4 Feb 1998 04:14:52 -0800 (PST)


This removes register_symtab calls where they're used without checking the
version of the kernel. This is untested; please send a report if you try
it.
___
Trevor Johnson

diff -ru linux-2.1.85-dist/drivers/sbus/char/vfc_dev.c linux/drivers/sbus/char/vfc_dev.c
--- linux-2.1.85-dist/drivers/sbus/char/vfc_dev.c Wed Jul 16 19:22:51 1997
+++ linux/drivers/sbus/char/vfc_dev.c Wed Feb 4 03:48:36 1998
@@ -666,9 +666,6 @@
int vfc_init(void)
#endif
{
-#ifdef MODULE
- register_symtab(0);
-#endif
return vfc_probe();
}

diff -ru linux-2.1.85-dist/fs/adfs/super.c linux/fs/adfs/super.c
--- linux-2.1.85-dist/fs/adfs/super.c Tue Jan 20 16:44:58 1998
+++ linux/fs/adfs/super.c Wed Feb 4 03:43:09 1998
@@ -331,11 +331,7 @@
#ifdef MODULE
int init_module (void)
{
- int status;
-
- if ((status = init_adfs_fs()) == 0)
- register_symtab(0);
- return status;
+ return (init_adfs_fs());
}

void cleanup_module (void)
diff -ru linux-2.1.85-dist/fs/hfs/super.c linux/fs/hfs/super.c
--- linux-2.1.85-dist/fs/hfs/super.c Mon Jan 12 14:46:24 1998
+++ linux/fs/hfs/super.c Wed Feb 4 03:42:57 1998
@@ -496,7 +496,6 @@

#ifdef MODULE
int init_module(void) {
- int error;

#if defined(DEBUG_SIZES) || defined(DEBUG_ALL)
hfs_warn("HFS inode: %d bytes available\n",
@@ -508,11 +507,7 @@
return -ENOMEM; /* well sort of */
}
#endif
- error = init_hfs_fs();
- if (!error) {
- /* register_symtab(NULL); */
- }
- return error;
+ return (init_hfs_fs());
}

void cleanup_module(void) {