diff options
author | Jaakko Heinonen <jh@FreeBSD.org> | 2009-10-27 17:14:22 +0000 |
---|---|---|
committer | Jaakko Heinonen <jh@FreeBSD.org> | 2009-10-27 17:14:22 +0000 |
commit | 0c73f68bb6188deba447936149400142812cfb24 (patch) | |
tree | ea640193f16ad56218380ef1582b767ae721dfc7 /sys/dev/fdc/fdc.c | |
parent | e4bd91445e49f19ef93ac2a79bb7b88f7c80e056 (diff) | |
download | src-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.c | 3 |
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); |