From 34c92ae5a742583dafe96defa39a2e1eadc84e02 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Wed, 1 Jul 2020 08:01:51 +0200 Subject: [PATCH] ioconf.c: Remove some dead code Signed-off-by: Sebastien GODARD --- ioconf.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/ioconf.c b/ioconf.c index 54d522b..8f7566a 100644 --- 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 -- 2.40.0