]> git.ozlabs.org Git - petitboot/commit
discover: Fix dead code in udev_handle_cdrom_events()
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Fri, 18 Dec 2015 00:15:01 +0000 (11:15 +1100)
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Fri, 18 Dec 2015 00:15:01 +0000 (11:15 +1100)
commite6ba022cef0ab01bcfbd5ce2e0e3f93f6ee3376b
tree0ed4c78aad2c67321adc70321a9cddcd8a7d57c9
parentc9c964c8c03c766d94d4798231d6e3db191c57df
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 <sam.mj@au1.ibm.com>
discover/udev.c