diff options
author | Sebastien Marie <semarie@cvs.openbsd.org> | 2015-09-19 21:07:05 +0000 |
---|---|---|
committer | Sebastien Marie <semarie@cvs.openbsd.org> | 2015-09-19 21:07:05 +0000 |
commit | a51fb5acf820805d0e73691dddb28f0985486b84 (patch) | |
tree | a6bd4e2c1992c3e7d897069859779b1a00f502af /sys/arch/macppc | |
parent | 770304b5396c370623ba149135a86ee62fefdc3d (diff) |
trivial "if(x) free(x)" replacement by "free(x)"
ok miod@
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r-- | sys/arch/macppc/macppc/openprom.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/macppc/macppc/openprom.c b/sys/arch/macppc/macppc/openprom.c index e661733e39c..78e53be2fd5 100644 --- a/sys/arch/macppc/macppc/openprom.c +++ b/sys/arch/macppc/macppc/openprom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openprom.c,v 1.3 2014/07/12 18:44:42 tedu Exp $ */ +/* $OpenBSD: openprom.c,v 1.4 2015/09/19 21:07:04 semarie Exp $ */ /* $NetBSD: openprom.c,v 1.4 2002/01/10 06:21:53 briggs Exp $ */ /* @@ -255,10 +255,8 @@ openpromioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p) return (ENOTTY); } - if (name) - free(name, M_TEMP, 0); - if (value) - free(value, M_TEMP, 0); + free(name, M_TEMP, 0); + free(value, M_TEMP, 0); return (error); } |