From 9fd7a4e70518940e212b7c412b9e3273b5efcd82 Mon Sep 17 00:00:00 2001 From: Andre Oppermann Date: Mon, 18 Sep 2006 23:44:12 +0000 Subject: [PATCH] Don't forget to add curly braces when doing more than one line of actions after a 'if' statement. Pointy hat to: andre --- sys/dev/em/if_em.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c index 0943f5585f6..c31baac5b3f 100644 --- a/sys/dev/em/if_em.c +++ b/sys/dev/em/if_em.c @@ -3393,11 +3393,12 @@ em_rxeof(struct adapter *adapter, int count) em_fixup_rx(adapter) != 0) goto skip; #endif - if (status & E1000_RXD_STAT_VP) + if (status & E1000_RXD_STAT_VP) { adapter->fmp->m_pkthdr.ether_vtag = (le16toh(current_desc->special) & E1000_RXD_SPC_VLAN_MASK); adapter->fmp->m_flags |= M_VLANTAG; + } #ifndef __NO_STRICT_ALIGNMENT skip: #endif