From owner-svn-src-all@FreeBSD.ORG Fri Nov 9 14:46:23 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D59E5818; Fri, 9 Nov 2012 14:46:23 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id A12068FC0A; Fri, 9 Nov 2012 14:46:23 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qA9EkN1R092257; Fri, 9 Nov 2012 14:46:23 GMT (envelope-from rdivacky@svn.freebsd.org) Received: (from rdivacky@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qA9EkNfK092255; Fri, 9 Nov 2012 14:46:23 GMT (envelope-from rdivacky@svn.freebsd.org) Message-Id: <201211091446.qA9EkNfK092255@svn.freebsd.org> From: Roman Divacky Date: Fri, 9 Nov 2012 14:46:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242825 - head/sys/dev/drm X-SVN-Group: head 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: Fri, 09 Nov 2012 14:46:23 -0000 Author: rdivacky Date: Fri Nov 9 14:46:23 2012 New Revision: 242825 URL: http://svnweb.freebsd.org/changeset/base/242825 Log: Cast VIA_READ to (void) where the result is unused. Modified: head/sys/dev/drm/via_dma.c head/sys/dev/drm/via_dmablit.c Modified: head/sys/dev/drm/via_dma.c ============================================================================== --- head/sys/dev/drm/via_dma.c Fri Nov 9 14:14:51 2012 (r242824) +++ head/sys/dev/drm/via_dma.c Fri Nov 9 14:46:23 2012 (r242825) @@ -481,7 +481,7 @@ static int via_hook_segment(drm_via_priv VIA_WRITE(VIA_REG_TRANSET, (HC_ParaType_PreCR << 16)); VIA_WRITE(VIA_REG_TRANSPACE, pause_addr_hi); VIA_WRITE(VIA_REG_TRANSPACE, pause_addr_lo); - VIA_READ(VIA_REG_TRANSPACE); + (void)VIA_READ(VIA_REG_TRANSPACE); } } return paused; @@ -569,7 +569,7 @@ static void via_cmdbuf_start(drm_via_pri VIA_WRITE(VIA_REG_TRANSPACE, pause_addr_lo); DRM_WRITEMEMORYBARRIER(); VIA_WRITE(VIA_REG_TRANSPACE, command | HC_HAGPCMNT_MASK); - VIA_READ(VIA_REG_TRANSPACE); + (void)VIA_READ(VIA_REG_TRANSPACE); dev_priv->dma_diff = 0; Modified: head/sys/dev/drm/via_dmablit.c ============================================================================== --- head/sys/dev/drm/via_dmablit.c Fri Nov 9 14:14:51 2012 (r242824) +++ head/sys/dev/drm/via_dmablit.c Fri Nov 9 14:46:23 2012 (r242825) @@ -210,7 +210,7 @@ via_fire_dmablit(struct drm_device *dev, VIA_WRITE(VIA_PCI_DMA_DPR0 + engine*0x10, vsg->chain_start); DRM_WRITEMEMORYBARRIER(); VIA_WRITE(VIA_PCI_DMA_CSR0 + engine*0x04, VIA_DMA_CSR_DE | VIA_DMA_CSR_TS); - VIA_READ(VIA_PCI_DMA_CSR0 + engine*0x04); + (void)VIA_READ(VIA_PCI_DMA_CSR0 + engine*0x04); }