diff options
author | Max Kellermann <max@duempel.org> | 2014-01-21 23:07:06 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-21 23:07:06 +0100 |
commit | 3e4fb92cfb90eb147fb57f76bb33f9c59dc43585 (patch) | |
tree | 8a4d46904cf2ebc1d861c49d19e612de668efb4b /src/db | |
parent | 0da713e278d970947ac72cea299f29a3c7ea2614 (diff) | |
download | mpd-3e4fb92cfb90eb147fb57f76bb33f9c59dc43585.tar.gz mpd-3e4fb92cfb90eb147fb57f76bb33f9c59dc43585.tar.xz mpd-3e4fb92cfb90eb147fb57f76bb33f9c59dc43585.zip |
db/upnp: remove redundant objid.empty() check from VisitServer()
If Namei() succeeds, the object id is guaranteed to be set.
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/UpnpDatabasePlugin.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/db/UpnpDatabasePlugin.cxx b/src/db/UpnpDatabasePlugin.cxx index 263494439..7b2f4996b 100644 --- a/src/db/UpnpDatabasePlugin.cxx +++ b/src/db/UpnpDatabasePlugin.cxx @@ -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" |