db/upnp: remove redundant objid.empty() check from VisitServer()

If Namei() succeeds, the object id is guaranteed to be set.
This commit is contained in:
Max Kellermann 2014-01-21 23:07:06 +01:00
parent 0da713e278
commit 3e4fb92cfb

View File

@ -570,10 +570,6 @@ UpnpDatabase::VisitServer(ContentDirectoryService &server,
if (!Namei(server, vpath, objid, tdirent, error))
return false;
if (objid.empty())
// Not found, not a fatal error
return true;
/* If recursive is set, this is a search... No use sending it
if the filter is empty. In this case, we implement limited
recursion (1-deep) here, which will handle the "add dir"