summaryrefslogtreecommitdiff
path: root/drivers/ipoe/ipoe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ipoe/ipoe.c')
-rw-r--r--drivers/ipoe/ipoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c
index 32c9a52..5e220e9 100644
--- a/drivers/ipoe/ipoe.c
+++ b/drivers/ipoe/ipoe.c
@@ -304,7 +304,7 @@ static int ipoe_do_nat(struct sk_buff *skb, __be32 new_addr, int to_peer)
ihl = iph->ihl * 4;
- switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) {
+ switch ((iph->frag_off & htons(IP_OFFSET)) ? 0 : iph->protocol) {
case IPPROTO_TCP:
{
struct tcphdr *tcph;