From: Peter Powell Date: Sun, 12 Oct 2014 17:38:23 +0000 (+0100) Subject: Kill some logically dead code detected by Coverity. X-Git-Tag: v2.0.23~135^2 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=d8fe6df7a7bc385a80ae3fde0e9e4a2ac12d4af3;p=user%2Fhenk%2Fcode%2Finspircd.git Kill some logically dead code detected by Coverity. - m_watch: wl has already been confirmed to not be NULL on L161. --- diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index be05d7d2d..074ce37ad 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -163,9 +163,6 @@ class CommandWatch : public Command /* Yup, is on my list */ watchlist::iterator n = wl->find(nick); - if (!wl) - return CMD_FAILURE; - if (n != wl->end()) { if (!n->second.empty())