[TRIVIAL] Squash warnings in fs/partitions/check.c

From: David Gibson (david@gibson.dropbear.id.au)
Date: Mon Sep 30 2002 - 21:47:39 EST


Linus, please apply. This removes a bundle of unused variables from
fs/partitions/check.c:devfs_create_cdrom(). Some of them,
confusingly, were unused because they were overriden by variables with
the same name in an inner scope.

diff -urN /home/dgibson/kernel/linuxppc-2.5/fs/partitions/check.c linux-bluefish/fs/partitions/check.c
--- /home/dgibson/kernel/linuxppc-2.5/fs/partitions/check.c 2002-10-01 10:17:33.000000000 +1000
+++ linux-bluefish/fs/partitions/check.c 2002-10-01 12:42:28.000000000 +1000
@@ -338,10 +338,6 @@
 static void devfs_create_cdrom(struct gendisk *dev)
 {
 #ifdef CONFIG_DEVFS_FS
- int pos = 0;
- devfs_handle_t dir, slave;
- unsigned int devfs_flags = DEVFS_FL_DEFAULT;
- char dirname[64], symlink[16];
         char vname[23];
 
         if (!cdroms)

-- 
David Gibson			| For every complex problem there is a
david@gibson.dropbear.id.au	| solution which is simple, neat and
				| wrong.
http://www.ozlabs.org/people/dgibson
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Sep 30 2002 - 22:00:48 EST