summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorians <ians@cvs.openbsd.org>2017-07-29 18:26:15 +0000
committerians <ians@cvs.openbsd.org>2017-07-29 18:26:15 +0000
commit97808a59c41d30e3060040ddbd011671e71c886b (patch)
tree97b36012141e8e8d2af8717667b6a467d7f472a5
parent4f476f100f45a2e4eb64c1acfd0146b6c574be9d (diff)
Remove useless conditional before free().
ok mpi@
-rw-r--r--sys/dev/usb/usb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index 1d9954e74ab..8139db6a4ae 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb.c,v 1.113 2017/07/21 20:13:41 ians Exp $ */
+/* $OpenBSD: usb.c,v 1.114 2017/07/29 18:26:14 ians Exp $ */
/* $NetBSD: usb.c,v 1.77 2003/01/01 00:10:26 thorpej Exp $ */
/*
@@ -678,8 +678,7 @@ usbioctl(dev_t devt, u_long cmd, caddr_t data, int flag, struct proc *p)
}
}
ret:
- if (ptr)
- free(ptr, M_TEMP, len);
+ free(ptr, M_TEMP, len);
return (error);
}