From owner-svn-src-head@FreeBSD.ORG Tue Oct 27 17:12:59 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDC6C106566C; Tue, 27 Oct 2009 17:12:59 +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 BCF448FC17; Tue, 27 Oct 2009 17:12:59 +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 n9RHCxcr037013; Tue, 27 Oct 2009 17:12:59 GMT (envelope-from jh@svn.freebsd.org) Received: (from jh@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n9RHCxgV037011; Tue, 27 Oct 2009 17:12:59 GMT (envelope-from jh@svn.freebsd.org) Message-Id: <200910271712.n9RHCxgV037011@svn.freebsd.org> From: Jaakko Heinonen Date: Tue, 27 Oct 2009 17:12:59 +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: r198519 - head/sys/dev/ata X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2009 17:12:59 -0000 Author: jh Date: Tue Oct 27 17:12:59 2009 New Revision: 198519 URL: http://svn.freebsd.org/changeset/base/198519 Log: Don't ignore the return value of g_modevent() in acd_modevent(). Approved by: trasz (mentor) Modified: head/sys/dev/ata/atapi-cd.c Modified: head/sys/dev/ata/atapi-cd.c ============================================================================== --- head/sys/dev/ata/atapi-cd.c Tue Oct 27 14:37:25 2009 (r198518) +++ head/sys/dev/ata/atapi-cd.c Tue Oct 27 17:12:59 2009 (r198519) @@ -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);