summaryrefslogtreecommitdiffstats
path: root/drivers/block/blkpg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/blkpg.c')
-rw-r--r--drivers/block/blkpg.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/block/blkpg.c b/drivers/block/blkpg.c
index 6f5674072..591ff9310 100644
--- a/drivers/block/blkpg.c
+++ b/drivers/block/blkpg.c
@@ -65,20 +65,6 @@ static struct gendisk *get_gendisk(kdev_t dev) {
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.
*