Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Sep 2017 21:38:07 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323246 - head/sys/dev/vxge/vxgehal
Message-ID:  <201709062138.v86Lc7s7067102@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Wed Sep  6 21:38:07 2017
New Revision: 323246
URL: https://svnweb.freebsd.org/changeset/base/323246

Log:
  vxge: plug void casts from memcpy/memzero calls
  
  Most of places using them did not have the cast in the first place.
  
  No functional changes.
  
  MFC after:	1 week

Modified:
  head/sys/dev/vxge/vxgehal/vxgehal-mrpcim.c

Modified: head/sys/dev/vxge/vxgehal/vxgehal-mrpcim.c
==============================================================================
--- head/sys/dev/vxge/vxgehal/vxgehal-mrpcim.c	Wed Sep  6 21:21:13 2017	(r323245)
+++ head/sys/dev/vxge/vxgehal/vxgehal-mrpcim.c	Wed Sep  6 21:38:07 2017	(r323246)
@@ -5654,10 +5654,10 @@ __hal_mrpcim_get_vpd_data(__hal_device_t *hldev)
 			if ((vpd_data[count] == 'S') &&
 			    (vpd_data[count + 1] == 'N') &&
 			    (vpd_data[count + 2] < VXGE_HAL_VPD_LENGTH)) {
-				(void) vxge_os_memzero(
+				vxge_os_memzero(
 				    hldev->mrpcim->vpd_data.serial_num,
 				    VXGE_HAL_VPD_LENGTH);
-				(void) vxge_os_memcpy(
+				vxge_os_memcpy(
 				    hldev->mrpcim->vpd_data.serial_num,
 				    &vpd_data[count + 3],
 				    vpd_data[count + 2]);
@@ -5666,9 +5666,9 @@ __hal_mrpcim_get_vpd_data(__hal_device_t *hldev)
 		}
 
 		if (vpd_data[1] < VXGE_HAL_VPD_LENGTH) {
-			(void) vxge_os_memzero(
+			vxge_os_memzero(
 			    hldev->mrpcim->vpd_data.product_name, vpd_data[1]);
-			(void) vxge_os_memcpy(hldev->mrpcim->vpd_data.product_name,
+			vxge_os_memcpy(hldev->mrpcim->vpd_data.product_name,
 			    &vpd_data[3], vpd_data[1]);
 		}
 	}



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