diff options
Diffstat (limited to 'sys/dev/led')
-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) { |