diff options
author | Max Kellermann <max@duempel.org> | 2014-01-16 08:51:39 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-16 08:51:39 +0100 |
commit | 8f9e76ca422b4182672aeb870d208e0881ca20f6 (patch) | |
tree | 005a80f77a24f7d27bcdb9b2abd8ff68dc46a8a4 /src/db | |
parent | 478ace984a3a162d3b5f5d72788a4426eceb75de (diff) | |
download | mpd-8f9e76ca422b4182672aeb870d208e0881ca20f6.tar.gz mpd-8f9e76ca422b4182672aeb870d208e0881ca20f6.tar.xz mpd-8f9e76ca422b4182672aeb870d208e0881ca20f6.zip |
db/upnp: remove redundant m_root nullptr checks
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/UpnpDatabasePlugin.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/db/UpnpDatabasePlugin.cxx b/src/db/UpnpDatabasePlugin.cxx index 257797d1a..48dff67ae 100644 --- a/src/db/UpnpDatabasePlugin.cxx +++ b/src/db/UpnpDatabasePlugin.cxx @@ -163,9 +163,6 @@ UpnpDatabase::Configure(const config_param &, Error &) bool UpnpDatabase::Open(Error &error) { - if (m_root) - return true; - m_lib = LibUPnP::getLibUPnP(error); if (!m_lib) return false; @@ -186,8 +183,7 @@ UpnpDatabase::Open(Error &error) void UpnpDatabase::Close() { - if (m_root) - delete m_root; + delete m_root; // TBD decide what we do with the lib and superdir objects } |