]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Kill some logically dead code detected by Coverity.
authorPeter Powell <petpow@saberuk.com>
Sun, 12 Oct 2014 17:38:23 +0000 (18:38 +0100)
committerPeter Powell <petpow@saberuk.com>
Mon, 13 Oct 2014 18:16:04 +0000 (19:16 +0100)
- m_watch: wl has already been confirmed to not be NULL on L161.

src/modules/m_watch.cpp

index be05d7d2d7e2c2154c51ae4abeaf2073b38b54bc..074ce37adcb2bfbdbf533b37fd3baf123d0734e4 100644 (file)
@@ -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())