Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/include remove unnecessary cast, KNF



details:   https://anonhg.NetBSD.org/src/rev/2c029bf44c9f
branches:  trunk
changeset: 350722:2c029bf44c9f
user:      rin <rin%NetBSD.org@localhost>
date:      Tue Jan 17 11:08:50 2017 +0000

description:
remove unnecessary cast, KNF

diffstat:

 sys/arch/arm/include/byte_swap.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9178906dcae5 -r 2c029bf44c9f sys/arch/arm/include/byte_swap.h
--- a/sys/arch/arm/include/byte_swap.h  Tue Jan 17 08:47:32 2017 +0000
+++ b/sys/arch/arm/include/byte_swap.h  Tue Jan 17 11:08:50 2017 +0000
@@ -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 @@
        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 @@
        v &= 0xffff;
        v = (uint16_t)((v >> 8) | (v << 8));
 
-       return (uint16_t)v;
+       return v;
 }
 
 __END_DECLS



Home | Main Index | Thread Index | Old Index