Module Name:    src
Committed By:   msaitoh
Date:           Fri Jul 26 03:28:13 UTC 2019

Modified Files:
        src/sys/dev/pci/ixgbe: ixgbe.c

Log Message:
 Simplify code. No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.196 -r1.197 src/sys/dev/pci/ixgbe/ixgbe.c

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

Modified files:

Index: src/sys/dev/pci/ixgbe/ixgbe.c
diff -u src/sys/dev/pci/ixgbe/ixgbe.c:1.196 src/sys/dev/pci/ixgbe/ixgbe.c:1.197
--- src/sys/dev/pci/ixgbe/ixgbe.c:1.196	Thu Jul 25 09:28:07 2019
+++ src/sys/dev/pci/ixgbe/ixgbe.c	Fri Jul 26 03:28:13 2019
@@ -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 @@ ixgbe_enable_queue(struct adapter *adapt
 {
 	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 @@ ixgbe_disable_queue_internal(struct adap
 {
 	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);

Reply via email to