diff options
| author | 2011-04-07 15:30:13 +0000 | |
|---|---|---|
| committer | 2011-04-07 15:30:13 +0000 | |
| commit | 88ee6abd86546d6aaff5433273d629543f1cf541 (patch) | |
| tree | 8aa534e1e5ea72bfd571e672fa108ad62962c2ac /sys/dev/diskmap.c | |
| parent | Move a function declaration out of the function since it is used in the next (diff) | |
| download | wireguard-openbsd-88ee6abd86546d6aaff5433273d629543f1cf541.tar.xz wireguard-openbsd-88ee6abd86546d6aaff5433273d629543f1cf541.zip | |
Do not use NULL in integer comparisons. No functional change.
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
Diffstat (limited to 'sys/dev/diskmap.c')
| -rw-r--r-- | sys/dev/diskmap.c | 4 |
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; } |
