aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdc/fdc.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2005-02-28 13:49:06 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2005-02-28 13:49:06 +0000
commit62da7a2d68510c673507574e5667c690172c407f (patch)
tree578538725cf80d3a2731fb0b1c6c5c589f38af07 /sys/dev/fdc/fdc.c
parent3a44a4c33e8a793f5e7f3cf89ab01b33f52e1ad1 (diff)
Notes
Diffstat (limited to 'sys/dev/fdc/fdc.c')
-rw-r--r--sys/dev/fdc/fdc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index 5a3a69e5aa33..b4dc1dea837d 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -1444,7 +1444,7 @@ fd_ioctl(struct g_provider *pp, u_long cmd, void *data, int fflag, struct thread
return (0);
case FD_STYPE: /* set drive type */
- if (!fflag & FWRITE)
+ if (!(fflag & FWRITE))
return (EPERM);
/*
* Allow setting drive type temporarily iff
@@ -1467,7 +1467,7 @@ fd_ioctl(struct g_provider *pp, u_long cmd, void *data, int fflag, struct thread
return (0);
case FD_SOPTS: /* set drive options */
- if (!fflag & FWRITE)
+ if (!(fflag & FWRITE))
return (EPERM);
fd->options = *(int *)data;
return (0);
@@ -1490,7 +1490,7 @@ fd_ioctl(struct g_provider *pp, u_long cmd, void *data, int fflag, struct thread
return (0);
case FD_FORM:
- if (!fflag & FWRITE)
+ if (!(fflag & FWRITE))
return (EPERM);
if (((struct fd_formb *)data)->format_version !=
FD_FORMAT_VERSION)