commit | 82a03936a465e511c206d72fa8c54ef43c6f3f17 | [log] [tgz] |
---|---|---|
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | Tue Oct 03 22:33:56 2017 +0300 |
committer | Anas Nashif <nashif@linux.intel.com> | Tue Oct 03 16:18:11 2017 -0400 |
tree | cb8bd42c901e9ea62fd7f826dbe2025ea4c50093 | |
parent | 990bf16206396759cd1372fe10c294bfa58b4178 [diff] |
net: sockets: Simplify if logic in sendto(), fix warning send()/sendto() aren't "front facing" functions, so when user calls them, context type hopefully should be already validated by other functions. They are also on critical path of app/network performance, so getting rid of extra check helps a little bit too. This also fixes a warning of "err" possibly being used non-initialized. Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>