diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-12-29 04:46:29 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-12-29 04:46:29 +0000 |
commit | 50e79a803f68420b63aa1c234d9fbb559b516596 (patch) | |
tree | de30c4eb556a1a06cdce2ffa2d52da41d52e8ceb /sys/dev/firmload.c | |
parent | d120957138dda2b5bd56658c84dddb03046e22ab (diff) |
Remove NULL-checks before free().
ok tb@
Diffstat (limited to 'sys/dev/firmload.c')
-rw-r--r-- | sys/dev/firmload.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/firmload.c b/sys/dev/firmload.c index 40ff1115afb..88346241c6a 100644 --- a/sys/dev/firmload.c +++ b/sys/dev/firmload.c @@ -1,4 +1,4 @@ -/* $OpenBSD: firmload.c,v 1.13 2015/08/26 22:33:24 deraadt Exp $ */ +/* $OpenBSD: firmload.c,v 1.14 2015/12/29 04:46:28 mmcc Exp $ */ /* * Copyright (c) 2004 Theo de Raadt <deraadt@openbsd.org> @@ -105,7 +105,6 @@ loadfirmware(const char *name, u_char **bufp, size_t *buflen) fail: vput(nid.ni_vp); err: - if (path) - free(path, M_TEMP, MAXPATHLEN); + free(path, M_TEMP, MAXPATHLEN); return (error); } |