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 Convert bool to target type before shift.
details: https://anonhg.NetBSD.org/src/rev/a00b43c292dd
branches: trunk
changeset: 343473:a00b43c292dd
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Feb 06 02:39:51 2016 +0000
description:
Convert bool to target type before shift.
diffstat:
sys/dev/pci/ixgbe/ixgbe_vf.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 12bcb0dca515 -r a00b43c292dd sys/dev/pci/ixgbe/ixgbe_vf.c
--- a/sys/dev/pci/ixgbe/ixgbe_vf.c Sat Feb 06 02:39:18 2016 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe_vf.c Sat Feb 06 02:39:51 2016 +0000
@@ -31,7 +31,7 @@
******************************************************************************/
/*$FreeBSD: head/sys/dev/ixgbe/ixgbe_vf.c 251964 2013-06-18 21:28:19Z jfv $*/
-/*$NetBSD: ixgbe_vf.c,v 1.5 2015/08/05 04:08:44 msaitoh Exp $*/
+/*$NetBSD: ixgbe_vf.c,v 1.6 2016/02/06 02:39:51 riastradh Exp $*/
#include "ixgbe_api.h"
@@ -384,7 +384,7 @@
msgbuf[0] = IXGBE_VF_SET_VLAN;
msgbuf[1] = vlan;
/* Setting the 8 bit field MSG INFO to TRUE indicates "add" */
- msgbuf[0] |= vlan_on << IXGBE_VT_MSGINFO_SHIFT;
+ msgbuf[0] |= (u32)vlan_on << IXGBE_VT_MSGINFO_SHIFT;
ret_val = mbx->ops.write_posted(hw, msgbuf, 2, 0);
if (!ret_val)
Home |
Main Index |
Thread Index |
Old Index