summaryrefslogtreecommitdiffstats
path: root/sys-utils/eject.c
diff options
context:
space:
mode:
authorSami Kerola2017-11-26 18:47:51 +0100
committerKarel Zak2017-11-28 14:39:19 +0100
commit6ce4256ecdf5fc75c9059670c175c71bce266eab (patch)
tree51387596f7b274ccffbbf2b5807a252e778418e5 /sys-utils/eject.c
parentlib/signames: remove unused function (diff)
downloadkernel-qcow2-util-linux-6ce4256ecdf5fc75c9059670c175c71bce266eab.tar.gz
kernel-qcow2-util-linux-6ce4256ecdf5fc75c9059670c175c71bce266eab.tar.xz
kernel-qcow2-util-linux-6ce4256ecdf5fc75c9059670c175c71bce266eab.zip
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 <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/eject.c')
-rw-r--r--sys-utils/eject.c4
1 files changed, 0 insertions, 4 deletions
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
}
/*