summaryrefslogtreecommitdiff
path: root/sys/arch/vax/vsa
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-02-17 23:49:26 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-02-17 23:49:26 +0000
commit30f3a7f29f6e0a816e8124349159e634c47fe273 (patch)
tree4dcafe81e008b90f9376000cf9b82e17507d8d0c /sys/arch/vax/vsa
parent71457241e36cf32c0c2e6ffa3a0088b23b454f44 (diff)
== has a higher priority than &, so put braces wherever necessary; from cloder@
Diffstat (limited to 'sys/arch/vax/vsa')
-rw-r--r--sys/arch/vax/vsa/hdc9224.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/vax/vsa/hdc9224.c b/sys/arch/vax/vsa/hdc9224.c
index 49258f5b212..7abab2e74d5 100644
--- a/sys/arch/vax/vsa/hdc9224.c
+++ b/sys/arch/vax/vsa/hdc9224.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hdc9224.c,v 1.11 2003/11/03 07:06:17 david Exp $ */
+/* $OpenBSD: hdc9224.c,v 1.12 2005/02/17 23:49:25 miod Exp $ */
/* $NetBSD: hdc9224.c,v 1.6 1997/03/15 16:32:22 ragge Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
@@ -1058,11 +1058,11 @@ hdc_rxselect(sc, unit)
*/
error = hdc_command (sc, DKC_CMD_DRSEL_RX33 | unit);
- if ((error != 0) || (q->udc_dstat & UDC_DS_READY == 0)) {
+ if ((error != 0) || ((q->udc_dstat & UDC_DS_READY) == 0)) {
printf("\nfloppy-drive not ready (new floppy inserted?)\n\n");
p->udc_rtcnt &= ~UDC_RC_INVRDY; /* clear INVRDY-flag */
error = hdc_command(sc, DKC_CMD_DRSEL_RX33 | unit);
- if ((error != 0) || (q->udc_dstat & UDC_DS_READY == 0)) {
+ if ((error != 0) || ((q->udc_dstat & UDC_DS_READY) == 0)) {
printf("diskette not ready(1): %x/%x\n", error,
q->udc_dstat);
printf("floppy-drive offline?\n");
@@ -1076,7 +1076,7 @@ hdc_rxselect(sc, unit)
error = hdc_command(sc, DKC_CMD_STEPOUT_FDD);
/* step out */
- if ((error != 0) || (q->udc_dstat & UDC_DS_READY == 1)) {
+ if ((error != 0) || ((q->udc_dstat & UDC_DS_READY) == 1)) {
printf("diskette not ready(2): %x/%x\n", error,
q->udc_dstat);
printf("No floppy inserted or drive offline\n");
@@ -1085,7 +1085,7 @@ hdc_rxselect(sc, unit)
p->udc_rtcnt |= UDC_RC_INVRDY;
error = hdc_command(sc, DKC_CMD_DRSEL_RX33 | unit);
- if ((error != 0) || (q->udc_dstat & UDC_DS_READY == 0)) {
+ if ((error != 0) || ((q->udc_dstat & UDC_DS_READY) == 0)) {
printf("diskette not ready(3): %x/%x\n", error,
q->udc_dstat);
printf("no floppy inserted or floppy-door open\n");