Commit 3e4fb92c authored by Max Kellermann's avatar Max Kellermann

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

If Namei() succeeds, the object id is guaranteed to be set.
parent 0da713e2
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment