diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-02-04 20:00:17 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-02-04 20:00:17 +0000 |
commit | d686641019f32152ca123434c7ba5aa85c4e50ab (patch) | |
tree | 6c0176388dcb9e173107eb342c1229f14ff67f76 /sys/kern | |
parent | 8ee4f3581dfe66619578345afd7b9fda64f8f2d1 (diff) | |
download | FreeBSD-src-d686641019f32152ca123434c7ba5aa85c4e50ab.zip FreeBSD-src-d686641019f32152ca123434c7ba5aa85c4e50ab.tar.gz |
Remove written-to but never read local variable 'offset' from
soreceive_dgram().
Submitted by: Christoph Mallon <christoph dot mallon at gmx dot de>
MFC after: 1 week
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_socket.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 1d76b15..c815ac1 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -1858,7 +1858,7 @@ soreceive_dgram(struct socket *so, struct sockaddr **psa, struct uio *uio, struct mbuf **mp0, struct mbuf **controlp, int *flagsp) { struct mbuf *m, *m2; - int flags, len, error, offset; + int flags, len, error; struct protosw *pr = so->so_proto; struct mbuf *nextrecord; @@ -2008,7 +2008,6 @@ soreceive_dgram(struct socket *so, struct sockaddr **psa, struct uio *uio, } KASSERT(m->m_type == MT_DATA, ("soreceive_dgram: !data")); - offset = 0; while (m != NULL && uio->uio_resid > 0) { len = uio->uio_resid; if (len > m->m_len) |