aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdc/fdc.c
diff options
context:
space:
mode:
authorJaakko Heinonen <jh@FreeBSD.org>2009-10-27 17:14:22 +0000
committerJaakko Heinonen <jh@FreeBSD.org>2009-10-27 17:14:22 +0000
commit0c73f68bb6188deba447936149400142812cfb24 (patch)
treeea640193f16ad56218380ef1582b767ae721dfc7 /sys/dev/fdc/fdc.c
parente4bd91445e49f19ef93ac2a79bb7b88f7c80e056 (diff)
downloadsrc-0c73f68bb6188deba447936149400142812cfb24.tar.gz
src-0c73f68bb6188deba447936149400142812cfb24.zip
Don't ignore the return value of g_modevent() in fdc_modevent().
Approved by: trasz (mentor)
Notes
Notes: svn path=/head/; revision=198520
Diffstat (limited to 'sys/dev/fdc/fdc.c')
-rw-r--r--sys/dev/fdc/fdc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index b2145cd00746..3ff31fd7c3b1 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -2068,8 +2068,7 @@ static int
fdc_modevent(module_t mod, int type, void *data)
{
- g_modevent(NULL, type, &g_fd_class);
- return (0);
+ return (g_modevent(NULL, type, &g_fd_class));
}
DRIVER_MODULE(fd, fdc, fd_driver, fd_devclass, fdc_modevent, 0);