]> granicus.if.org Git - sysstat/commitdiff
ioconf.c: Remove some dead code
authorSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 1 Jul 2020 06:01:51 +0000 (08:01 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 1 Jul 2020 06:01:51 +0000 (08:01 +0200)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
ioconf.c

index 54d522bd27950c20b8e7e450fba922dd49e7dae1..8f7566ae9ab4d4cebdef8786cb52b116405b1331 100644 (file)
--- a/ioconf.c
+++ b/ioconf.c
@@ -452,34 +452,6 @@ char *ioc_name(unsigned int major, unsigned int minor)
        return (name);
 }
 
-/*
- ***************************************************************************
- * Check whether a device is a whole disk device or not.
- *
- * IN:
- * @major      Device major number.
- * @minor      Device minor number.
- *
- * RETURNS:
- * Predicate: Returns 1 if dev (major,minor) is a whole disk device.
- *            Returns 0 otherwise.
- ***************************************************************************
- */
-int ioc_iswhole(unsigned int major, unsigned int minor)
-{
-       if (!ioc_parsed && !ioc_init())
-               return 0;
-
-       if (major > MAX_BLKDEV)
-               return 0;
-
-       if (ioconf[major] == NULL)
-               /* Device not registered */
-               return 0;
-
-       return (IS_WHOLE(major, minor));
-}
-
 /*
  ***************************************************************************
  * Transform device mapper name: Get the user assigned name of the logical