From owner-svn-src-all@FreeBSD.ORG Tue Oct 27 17:14:23 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E6A4106568B; Tue, 27 Oct 2009 17:14:23 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id F1E658FC1B; Tue, 27 Oct 2009 17:14:22 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n9RHEM1u037071; Tue, 27 Oct 2009 17:14:22 GMT (envelope-from jh@svn.freebsd.org) Received: (from jh@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n9RHEMfM037069; Tue, 27 Oct 2009 17:14:22 GMT (envelope-from jh@svn.freebsd.org) Message-Id: <200910271714.n9RHEMfM037069@svn.freebsd.org> From: Jaakko Heinonen Date: Tue, 27 Oct 2009 17:14:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r198520 - head/sys/dev/fdc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2009 17:14:23 -0000 Author: jh Date: Tue Oct 27 17:14:22 2009 New Revision: 198520 URL: http://svn.freebsd.org/changeset/base/198520 Log: Don't ignore the return value of g_modevent() in fdc_modevent(). Approved by: trasz (mentor) Modified: head/sys/dev/fdc/fdc.c Modified: head/sys/dev/fdc/fdc.c ============================================================================== --- head/sys/dev/fdc/fdc.c Tue Oct 27 17:12:59 2009 (r198519) +++ head/sys/dev/fdc/fdc.c Tue Oct 27 17:14:22 2009 (r198520) @@ -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);