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/0c79545cf213
branches:  trunk
changeset: 457982:0c79545cf213
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 54d9711e2cc0 -r 0c79545cf213 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