Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci/ixgbe Simplify code. No functional change intended.



details:   https://anonhg.NetBSD.org/src/rev/1fed0010a91c
branches:  trunk
changeset: 1000478:1fed0010a91c
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Jul 26 03:28:13 2019 +0000

description:
Simplify code. No functional change intended.

diffstat:

 sys/dev/pci/ixgbe/ixgbe.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ad1fb62cf652 -r 1fed0010a91c sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Fri Jul 26 03:27:24 2019 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Fri Jul 26 03:28:13 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.196 2019/07/25 09:28:07 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.197 2019/07/26 03:28:13 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -2565,7 +2565,7 @@
 {
        struct ixgbe_hw *hw = &adapter->hw;
        struct ix_queue *que = &adapter->queues[vector];
-       u64             queue = (u64)(1ULL << vector);
+       u64             queue = 1ULL << vector;
        u32             mask;
 
        mutex_enter(&que->dc_mtx);
@@ -2595,7 +2595,7 @@
 {
        struct ixgbe_hw *hw = &adapter->hw;
        struct ix_queue *que = &adapter->queues[vector];
-       u64             queue = (u64)(1ULL << vector);
+       u64             queue = 1ULL << vector;
        u32             mask;
 
        mutex_enter(&que->dc_mtx);



Home | Main Index | Thread Index | Old Index