diff options
author | phk <phk@FreeBSD.org> | 2004-07-10 15:38:27 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-07-10 15:38:27 +0000 |
commit | afe21b6175db45f3406c5cd8c0d1516078e4e32c (patch) | |
tree | 4e576db3c99dda50094e392174e7449410c49c4a /sys | |
parent | 72e8ff2c106cf137240a0ef34e188efac5802b93 (diff) | |
download | FreeBSD-src-afe21b6175db45f3406c5cd8c0d1516078e4e32c.zip FreeBSD-src-afe21b6175db45f3406c5cd8c0d1516078e4e32c.tar.gz |
Remove a pointless check.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/led/led.c | 2 |
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) { |