TS-2187: 'nr' set but not used in EventNotify::signal() Signed-off-by: Yunkai Zhang <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/f47c6be3 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/f47c6be3 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/f47c6be3 Branch: refs/heads/5.0.x Commit: f47c6be30ee7217ec74943d1cd78b3ef84aedce4 Parents: 93184bb Author: Yunkai Zhang <[email protected]> Authored: Sun Sep 15 16:16:46 2013 +0800 Committer: Yunkai Zhang <[email protected]> Committed: Sun Sep 15 16:21:59 2013 +0800 ---------------------------------------------------------------------- lib/ts/EventNotify.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f47c6be3/lib/ts/EventNotify.cc ---------------------------------------------------------------------- diff --git a/lib/ts/EventNotify.cc b/lib/ts/EventNotify.cc index c838f9b..9ee0592 100644 --- a/lib/ts/EventNotify.cc +++ b/lib/ts/EventNotify.cc @@ -70,14 +70,13 @@ void EventNotify::signal(void) { #ifdef HAVE_EVENTFD - ssize_t nr; uint64_t value = 1; // // If the addition would cause the counterâs value of eventfd // to exceed the maximum, write() will fail with the errno EAGAIN, // which is acceptable as the receiver will be notified eventually. // - nr = write(m_event_fd, &value, sizeof(uint64_t)); + write(m_event_fd, &value, sizeof(uint64_t)); #else ink_cond_signal(&m_cond); #endif
