From owner-svn-src-all@FreeBSD.ORG Thu Oct 10 19:48:43 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C788CC84; Thu, 10 Oct 2013 19:48:43 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B586727B6; Thu, 10 Oct 2013 19:48:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9AJmhxm029863; Thu, 10 Oct 2013 19:48:43 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9AJmhDn029862; Thu, 10 Oct 2013 19:48:43 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201310101948.r9AJmhDn029862@svn.freebsd.org> From: Dimitry Andric Date: Thu, 10 Oct 2013 19:48:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org Subject: svn commit: r256292 - stable/10/sys/arm/versatile X-SVN-Group: defaults MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 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: Thu, 10 Oct 2013 19:48:43 -0000 Author: dim Date: Thu Oct 10 19:48:43 2013 New Revision: 256292 URL: http://svnweb.freebsd.org/changeset/base/256292 Log: MFC r256291: In sys/arm/versatile/versatile_pci.c, add a default handler, to fix a gcc warning about uninitialized use of a variable. Approved by: re (gjb) Modified: stable/10/sys/arm/versatile/versatile_pci.c Directory Properties: stable/10/sys/ (props changed) Modified: stable/10/sys/arm/versatile/versatile_pci.c ============================================================================== --- stable/10/sys/arm/versatile/versatile_pci.c Thu Oct 10 19:40:01 2013 (r256291) +++ stable/10/sys/arm/versatile/versatile_pci.c Thu Oct 10 19:48:43 2013 (r256292) @@ -360,6 +360,9 @@ versatile_pci_activate_resource(device_t res = (BUS_ACTIVATE_RESOURCE(device_get_parent(bus), child, type, rid, r)); break; + default: + res = ENXIO; + break; } return (res);