From b66dd7afd20b82668a3d7756900c91680bd1d91e Mon Sep 17 00:00:00 2001 From: Martin Lucina Date: Wed, 25 Aug 2010 09:50:45 +0200 Subject: zmq_stopwatch_stop: Don't return EFAULT Function returning unsigned long int cannot return (-1) --- src/zmq.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/zmq.cpp b/src/zmq.cpp index 8d2fd05..342a8a6 100644 --- a/src/zmq.cpp +++ b/src/zmq.cpp @@ -765,10 +765,6 @@ unsigned long zmq_stopwatch_stop (void *watch_) { uint64_t end = now (); uint64_t start = *(uint64_t*) watch_; - if (!watch_) { - errno = EFAULT; - return -1; - } free (watch_); return (unsigned long) (end - start); } -- cgit v1.2.3