summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pcf/pcf.c4
-rw-r--r--sys/i386/isa/pcf.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pcf/pcf.c b/sys/dev/pcf/pcf.c
index b3e11d8..117ddf2 100644
--- a/sys/dev/pcf/pcf.c
+++ b/sys/dev/pcf/pcf.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: pcf.c,v 1.5 1998/11/04 22:09:17 nsouch Exp $
+ * $Id: pcf.c,v 1.6 1998/12/07 21:58:22 archie Exp $
*
*/
#include <sys/param.h>
@@ -362,7 +362,7 @@ static int pcf_start(device_t pcfdev, u_char slave, int timeout)
struct pcf_softc *pcf = DEVTOSOFTC(pcfdev);
int error = 0;
- if (PCF_GET_S1(pcf) & nBB == 0)
+ if ((PCF_GET_S1(pcf) & nBB) == 0)
return (IIC_EBUSBSY);
/* set slave address to PCF. Last bit (LSB) must be set correctly
diff --git a/sys/i386/isa/pcf.c b/sys/i386/isa/pcf.c
index b3e11d8..117ddf2 100644
--- a/sys/i386/isa/pcf.c
+++ b/sys/i386/isa/pcf.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: pcf.c,v 1.5 1998/11/04 22:09:17 nsouch Exp $
+ * $Id: pcf.c,v 1.6 1998/12/07 21:58:22 archie Exp $
*
*/
#include <sys/param.h>
@@ -362,7 +362,7 @@ static int pcf_start(device_t pcfdev, u_char slave, int timeout)
struct pcf_softc *pcf = DEVTOSOFTC(pcfdev);
int error = 0;
- if (PCF_GET_S1(pcf) & nBB == 0)
+ if ((PCF_GET_S1(pcf) & nBB) == 0)
return (IIC_EBUSBSY);
/* set slave address to PCF. Last bit (LSB) must be set correctly
OpenPOWER on IntegriCloud