svn commit: r198519 - head/sys/dev/ata
Jaakko Heinonen
jh at FreeBSD.org
Tue Oct 27 17:12:59 UTC 2009
Author: jh
Date: Tue Oct 27 17:12:59 2009
New Revision: 198519
URL: http://svn.freebsd.org/changeset/base/198519
Log:
Don't ignore the return value of g_modevent() in acd_modevent().
Approved by: trasz (mentor)
Modified:
head/sys/dev/ata/atapi-cd.c
Modified: head/sys/dev/ata/atapi-cd.c
==============================================================================
--- head/sys/dev/ata/atapi-cd.c Tue Oct 27 14:37:25 2009 (r198518)
+++ head/sys/dev/ata/atapi-cd.c Tue Oct 27 17:12:59 2009 (r198519)
@@ -1905,8 +1905,7 @@ static devclass_t acd_devclass;
static int
acd_modevent(module_t mod, int what, void *arg)
{
- g_modevent(0, what, &acd_class);
- return 0;
+ return g_modevent(0, what, &acd_class);
}
DRIVER_MODULE(acd, ata, acd_driver, acd_devclass, acd_modevent, NULL);
More information about the svn-src-head
mailing list