projects
/
dragonfly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
AMD64 - Refactor uio_resid and size_t assumptions.
[dragonfly.git]
/
sys
/
netgraph7
/
ng_device.c
diff --git
a/sys/netgraph7/ng_device.c
b/sys/netgraph7/ng_device.c
index
3705d8f
..
8d21d94
100644
(file)
--- a/
sys/netgraph7/ng_device.c
+++ b/
sys/netgraph7/ng_device.c
@@
-463,7
+463,7
@@
ngdwrite(struct cdev *dev, struct uio *uio, int flag)
if (uio->uio_resid == 0)
return (0);
- if (uio->uio_resid < 0 || uio->uio_resid > IP_MAXPACKET)
+ if (uio->uio_resid > IP_MAXPACKET)
return (EIO);
if ((m = m_uiotombuf(uio, MB_DONTWAIT, 0, 0, M_PKTHDR)) == NULL)