summaryrefslogtreecommitdiffstats
path: root/sys/dev/diskmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/diskmap.c')
-rw-r--r--sys/dev/diskmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/diskmap.c b/sys/dev/diskmap.c
index 3a005e8550a..a080dc24c29 100644
--- a/sys/dev/diskmap.c
+++ b/sys/dev/diskmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diskmap.c,v 1.3 2011/01/12 23:18:56 thib Exp $ */
+/* $OpenBSD: diskmap.c,v 1.4 2011/04/07 15:30:16 miod Exp $ */
/*
* Copyright (c) 2009, 2010 Joel Sing <jsing@openbsd.org>
@@ -86,7 +86,7 @@ diskmapioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p)
goto bad;
}
- if (FILE_IS_USABLE(fp) == NULL) {
+ if (!FILE_IS_USABLE(fp)) {
error = EINVAL;
goto bad;
}