From: Samuel Mendoza-Jonas Date: Fri, 18 Dec 2015 00:15:01 +0000 (+1100) Subject: discover: Fix dead code in udev_handle_cdrom_events() X-Git-Tag: v1.0.0~34^2~7 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=e6ba022cef0ab01bcfbd5ce2e0e3f93f6ee3376b;hp=e6ba022cef0ab01bcfbd5ce2e0e3f93f6ee3376b discover: Fix dead code in udev_handle_cdrom_events() The check against ddev->mounted to cause an eject action is logically impossible. Change it so a cdrom_eject() is called properly. Change the return value to 'true' for any action caused by DISK_EJECT_REQUEST - no further action is appropriate in this case Signed-off-by: Samuel Mendoza-Jonas ---