diff options
author | jh <jh@FreeBSD.org> | 2009-10-27 17:14:22 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2009-10-27 17:14:22 +0000 |
commit | 90afab65a118b82cefc4bbe8ce4c85df8beb6ede (patch) | |
tree | ea640193f16ad56218380ef1582b767ae721dfc7 /sys/dev/fdc | |
parent | f46885cd975954607d595bfed86aa26a51dee332 (diff) | |
download | FreeBSD-src-90afab65a118b82cefc4bbe8ce4c85df8beb6ede.zip FreeBSD-src-90afab65a118b82cefc4bbe8ce4c85df8beb6ede.tar.gz |
Don't ignore the return value of g_modevent() in fdc_modevent().
Approved by: trasz (mentor)
Diffstat (limited to 'sys/dev/fdc')
-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 b2145cd..3ff31fd 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); |