From 6ce4256ecdf5fc75c9059670c175c71bce266eab Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 26 Nov 2017 17:47:51 +0000 Subject: eject: remove list_speeds() #ifdef CDROM_SELECT_SPEED protection The CDROM_SELECT_SPEED should be available practically everywhere. Where the define is missing an error message about path /proc/sys/dev/cdrom/info cannot be opened is better error than a warnx() about kernel support. Signed-off-by: Sami Kerola --- sys-utils/eject.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys-utils/eject.c') diff --git a/sys-utils/eject.c b/sys-utils/eject.c index aa90ff72f..a38c5c38c 100644 --- a/sys-utils/eject.c +++ b/sys-utils/eject.c @@ -548,7 +548,6 @@ static int read_speed(const char *devname) */ static void list_speeds(struct eject_control *ctl) { -#ifdef CDROM_SELECT_SPEED int max_speed, curr_speed = 0; select_speed(ctl); @@ -565,9 +564,6 @@ static void list_speeds(struct eject_control *ctl) } printf("\n"); -#else - warnx(_("CD-ROM select speed command not supported by this kernel")); -#endif } /* -- cgit v1.2.3-55-g7522