Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Nov 2012 14:46:23 +0000 (UTC)
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r242825 - head/sys/dev/drm
Message-ID:  <201211091446.qA9EkNfK092255@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211091446.qA9EkNfK092255>