db/upnp: remove redundant m_root nullptr checks
This commit is contained in:
parent
478ace984a
commit
8f9e76ca42
|
@ -163,9 +163,6 @@ UpnpDatabase::Configure(const config_param &, Error &)
|
||||||
bool
|
bool
|
||||||
UpnpDatabase::Open(Error &error)
|
UpnpDatabase::Open(Error &error)
|
||||||
{
|
{
|
||||||
if (m_root)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
m_lib = LibUPnP::getLibUPnP(error);
|
m_lib = LibUPnP::getLibUPnP(error);
|
||||||
if (!m_lib)
|
if (!m_lib)
|
||||||
return false;
|
return false;
|
||||||
|
@ -186,8 +183,7 @@ UpnpDatabase::Open(Error &error)
|
||||||
void
|
void
|
||||||
UpnpDatabase::Close()
|
UpnpDatabase::Close()
|
||||||
{
|
{
|
||||||
if (m_root)
|
delete m_root;
|
||||||
delete m_root;
|
|
||||||
// TBD decide what we do with the lib and superdir objects
|
// TBD decide what we do with the lib and superdir objects
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue