diff options
author | jh <jh@FreeBSD.org> | 2009-10-27 17:12:59 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2009-10-27 17:12:59 +0000 |
commit | f46885cd975954607d595bfed86aa26a51dee332 (patch) | |
tree | 78d8c4be76b974b00fb1abe26bdde2b7b46db1fb | |
parent | 7e19eab5d0d7c92bdcc952244be56d6d678961e0 (diff) | |
download | FreeBSD-src-f46885cd975954607d595bfed86aa26a51dee332.zip FreeBSD-src-f46885cd975954607d595bfed86aa26a51dee332.tar.gz |
Don't ignore the return value of g_modevent() in acd_modevent().
Approved by: trasz (mentor)
-rw-r--r-- | sys/dev/ata/atapi-cd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ata/atapi-cd.c b/sys/dev/ata/atapi-cd.c index 2791826..7e23db6 100644 --- a/sys/dev/ata/atapi-cd.c +++ b/sys/dev/ata/atapi-cd.c @@ -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); |