mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove a pointless check.
This commit is contained in:
parent
ee38feb205
commit
72118ea9fd
1 changed files with 0 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue