patch-2.3.43 linux/drivers/block/blkpg.c

Next file: linux/drivers/block/cs5530.c
Previous file: linux/drivers/block/acsi_slm.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/drivers/block/blkpg.c linux/drivers/block/blkpg.c
@@ -65,20 +65,6 @@
 	return g;
 }
 
-/* moved here from md.c - will be discarded later */
-char *partition_name (kdev_t dev) {
-	static char name[40];		/* kdevname returns 32 bytes */
-					/* disk_name requires 32 bytes */
-	struct gendisk *hd = get_gendisk (dev);
-
-	if (!hd) {
-		sprintf (name, "[dev %s]", kdevname(dev));
-		return (name);
-	}
-
-	return disk_name (hd, MINOR(dev), name);  /* routine in genhd.c */
-}
-
 /*
  * Add a partition.
  *

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)