From: Sebastien GODARD Date: Wed, 1 Jul 2020 06:01:51 +0000 (+0200) Subject: ioconf.c: Remove some dead code X-Git-Tag: v12.4.0~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34c92ae5a742583dafe96defa39a2e1eadc84e02;p=sysstat ioconf.c: Remove some dead code Signed-off-by: Sebastien GODARD --- 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