diff options
author | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2017-09-21 10:00:16 +0000 |
---|---|---|
committer | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2017-09-21 10:00:16 +0000 |
commit | 08016b31854e031ee42dd841fe0e717927210397 (patch) | |
tree | 5f6a74b837079b709c8f02f13ab3e491b9f7e88d /lib/libnv | |
parent | 53999485e0b09ff33d88a9cee455e4e5c7253603 (diff) | |
download | src-08016b31854e031ee42dd841fe0e717927210397.tar.gz src-08016b31854e031ee42dd841fe0e717927210397.zip |
Remove redundant initialization. Don't use variable - just return the value.
Make scan-build happy by casting to 'void *' instead of 'void **'.
Submitted by: pjd@
MFC after: 1 month
Found by: scan-build and cppcheck
Sponsored by: Wheel Systems
Notes
Notes:
svn path=/head/; revision=323851
Diffstat (limited to 'lib/libnv')
-rw-r--r-- | lib/libnv/msgio.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libnv/msgio.c b/lib/libnv/msgio.c index 27620a184f9a..283ddccbdd79 100644 --- a/lib/libnv/msgio.c +++ b/lib/libnv/msgio.c @@ -299,7 +299,6 @@ fd_package_recv(int sock, int *fds, size_t nfds) PJDLOG_ASSERT(nfds > 0); PJDLOG_ASSERT(fds != NULL); - i = 0; bzero(&msg, sizeof(msg)); bzero(&iov, sizeof(iov)); |