summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-07-10 15:38:27 +0000
committerphk <phk@FreeBSD.org>2004-07-10 15:38:27 +0000
commitafe21b6175db45f3406c5cd8c0d1516078e4e32c (patch)
tree4e576db3c99dda50094e392174e7449410c49c4a /sys
parent72e8ff2c106cf137240a0ef34e188efac5802b93 (diff)
downloadFreeBSD-src-afe21b6175db45f3406c5cd8c0d1516078e4e32c.zip
FreeBSD-src-afe21b6175db45f3406c5cd8c0d1516078e4e32c.tar.gz
Remove a pointless check.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/led/led.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/led/led.c b/sys/dev/led/led.c
index df9f27e..07c1c9e 100644
--- a/sys/dev/led/led.c
+++ b/sys/dev/led/led.c
@@ -86,8 +86,6 @@ led_write(struct cdev *dev, struct uio *uio, int ioflag)
if (uio->uio_resid > 512)
return (EINVAL);
s2 = s = malloc(uio->uio_resid + 1, M_DEVBUF, M_WAITOK);
- if (s == NULL)
- return (ENOMEM);
s[uio->uio_resid] = '\0';
error = uiomove(s, uio->uio_resid, uio);
if (error) {
OpenPOWER on IntegriCloud