From: jsg Date: Sun, 28 Dec 2014 13:55:30 +0000 (+0000) Subject: mask with & not && X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c537451d793a29b5cd00e9e4327663d533c8d3e0;p=openbsd mask with & not && ok claudio@ --- diff --git a/sys/dev/pci/if_che.c b/sys/dev/pci/if_che.c index 2801caebdd4..e1129f9d8ba 100644 --- a/sys/dev/pci/if_che.c +++ b/sys/dev/pci/if_che.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_che.c,v 1.10 2011/04/03 15:36:02 jasper Exp $ */ +/* $OpenBSD: if_che.c,v 1.11 2014/12/28 13:55:30 jsg Exp $ */ /* * Copyright (c) 2007 Claudio Jeker @@ -82,7 +82,7 @@ #define CHE_T3DBG_F_GPIO1_OUT_VAL 0x00000002 #define CHE_T3DBG_F_GPIO0_OUT_VAL 0x00000001 #define CHE_REG_I2C_CFG 0x6a0 -#define CHE_I2C_CLKDIV(_x) ((_x) && 0xfff) +#define CHE_I2C_CLKDIV(_x) ((_x) & 0xfff) #define CHE_REG_MI1_CFG 0x6b0 #define CHE_REG_MI1_ADDR 0x6b4 #define CHE_REG_MI1_DATA 0x6b8