Module Name:    src
Committed By:   rin
Date:           Tue Jan 17 11:08:50 UTC 2017

Modified Files:
        src/sys/arch/arm/include: byte_swap.h

Log Message:
remove unnecessary cast, KNF


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/arm/include/byte_swap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/include/byte_swap.h
diff -u src/sys/arch/arm/include/byte_swap.h:1.15 src/sys/arch/arm/include/byte_swap.h:1.16
--- src/sys/arch/arm/include/byte_swap.h:1.15	Sat Jan 14 17:14:23 2017
+++ src/sys/arch/arm/include/byte_swap.h	Tue Jan 17 11:08:50 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: byte_swap.h,v 1.15 2017/01/14 17:14:23 martin Exp $	*/
+/*	$NetBSD: byte_swap.h,v 1.16 2017/01/17 11:08:50 rin Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1999, 2002 The NetBSD Foundation, Inc.
@@ -81,7 +81,7 @@ __byte_swap_u32_variable(uint32_t v)
 	v = (v >> 8) | (v << 24);
 	v ^= (t1 >> 8);
 
-	return (v);
+	return v;
 }
 
 #define	__BYTE_SWAP_U16_VARIABLE __byte_swap_u16_variable
@@ -110,7 +110,7 @@ __byte_swap_u16_variable(uint16_t v)
 	v &= 0xffff;
 	v = (uint16_t)((v >> 8) | (v << 8));
 
-	return (uint16_t)v;
+	return v;
 }
 
 __END_DECLS

Reply via email to