From owner-svn-src-all@FreeBSD.ORG Fri Feb 5 02:40:43 2010 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 3F9E31065692; Fri, 5 Feb 2010 02:40:43 +0000 (UTC) (envelope-from neel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2F9818FC13; Fri, 5 Feb 2010 02:40:43 +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 o152eh2Q004563; Fri, 5 Feb 2010 02:40:43 GMT (envelope-from neel@svn.freebsd.org) Received: (from neel@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o152ehh8004561; Fri, 5 Feb 2010 02:40:43 GMT (envelope-from neel@svn.freebsd.org) Message-Id: <201002050240.o152ehh8004561@svn.freebsd.org> From: Neel Natu Date: Fri, 5 Feb 2010 02:40:43 +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: r203508 - head/sys/mips/sibyte 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: Fri, 05 Feb 2010 02:40:43 -0000 Author: neel Date: Fri Feb 5 02:40:42 2010 New Revision: 203508 URL: http://svn.freebsd.org/changeset/base/203508 Log: style: don't need to use braces for single line control statements. Modified: head/sys/mips/sibyte/sb_zbpci.c Modified: head/sys/mips/sibyte/sb_zbpci.c ============================================================================== --- head/sys/mips/sibyte/sb_zbpci.c Fri Feb 5 01:47:43 2010 (r203507) +++ head/sys/mips/sibyte/sb_zbpci.c Fri Feb 5 02:40:42 2010 (r203508) @@ -83,9 +83,8 @@ zbpci_attach(device_t dev) size = (PCI_BUSMAX + 1) * (PCI_SLOTMAX + 1) * (PCI_FUNCMAX + 1) * 256; res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, CFG_PADDR_BASE, CFG_PADDR_BASE + size - 1, size, 0); - if (res == NULL) { + if (res == NULL) panic("Cannot allocate resource for config space accesses."); - } /* * Allocate KVA for accessing PCI config space. @@ -97,25 +96,21 @@ zbpci_attach(device_t dev) return (ENOMEM); } - for (n = 0; n < mp_ncpus; ++n) { + for (n = 0; n < mp_ncpus; ++n) zbpci_config_space[n].vaddr = va + n * PAGE_SIZE; - } /* * Sibyte has the PCI bus hierarchy rooted at bus 0 and HT-PCI * hierarchy rooted at bus 1. */ - if (device_add_child(dev, "pci", 0) == NULL) { + if (device_add_child(dev, "pci", 0) == NULL) panic("zbpci_attach: could not add pci bus 0.\n"); - } - if (device_add_child(dev, "pci", 1) == NULL) { + if (device_add_child(dev, "pci", 1) == NULL) panic("zbpci_attach: could not add pci bus 1.\n"); - } - if (bootverbose) { + if (bootverbose) device_printf(dev, "attached.\n"); - } return (bus_generic_attach(dev)); }