diff options
author | csjp <csjp@FreeBSD.org> | 2006-11-04 20:54:37 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2006-11-04 20:54:37 +0000 |
commit | ca30d69fda30d846074cf41aba30e036b5e06f78 (patch) | |
tree | f648f9a15e9fd8e990de8044fe4d56ec80cf3282 /sys/net/rtsock.c | |
parent | 7d77b4e35faa299425c10e8671a8b46bb9cf26ae (diff) | |
download | FreeBSD-src-ca30d69fda30d846074cf41aba30e036b5e06f78.zip FreeBSD-src-ca30d69fda30d846074cf41aba30e036b5e06f78.tar.gz |
Currently, we initialize "error" to zero when it's declared, then
we never initialize it to anything else. However, in the case that
m_uiotombuf fails, we return error (effectively reporting success).
This appears to be a relic of an older revision of this file, where
"error" used to be doing something useful. (See revision 1.1, where
error is used in a loop with uiomove() instead of using m_uiotomubf).
So instead on unconditionally reporting success in the case there is
a failure in m_uiotombuf, explicitly return ENOBUFS. While we are
here, garbage collect the error variable since it's no longer required.
MFC after: 2 weeks
Diffstat (limited to 'sys/net/rtsock.c')
0 files changed, 0 insertions, 0 deletions