Module Name: src
Committed By: riastradh
Date: Sat Feb 6 02:39:51 UTC 2016
Modified Files:
src/sys/dev/pci/ixgbe: ixgbe_vf.c
Log Message:
Convert bool to target type before shift.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/pci/ixgbe/ixgbe_vf.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_vf.c
diff -u src/sys/dev/pci/ixgbe/ixgbe_vf.c:1.5 src/sys/dev/pci/ixgbe/ixgbe_vf.c:1.6
--- src/sys/dev/pci/ixgbe/ixgbe_vf.c:1.5 Wed Aug 5 04:08:44 2015
+++ src/sys/dev/pci/ixgbe/ixgbe_vf.c Sat Feb 6 02:39:51 2016
@@ -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 @@ s32 ixgbe_set_vfta_vf(struct ixgbe_hw *h
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)