Remove pointer deref before NULL check. These lines are already
after NULL check.
Fix for:
[src/msg/async/EventKqueue.cc:96] -> [src/msg/async/EventKqueue.cc:99]:
(warning) Possible null pointer dereference: tvp - otherwise it is
redundant to check it against null.
[src/msg/async/EventKqueue.cc:97] -> [src/msg/async/EventKqueue.cc:99]:
(warning) Possible null pointer dereference: tvp - otherwise it is
redundant to check it against null.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
{
int retval, numevents = 0;
struct timespec timeout;
- timeout.tv_sec = tvp->tv_sec;
- timeout.tv_nsec = tvp->tv_usec * 1000;
if (tvp != NULL) {
timeout.tv_sec = tvp->tv_sec;