From 3e4fb92cfb90eb147fb57f76bb33f9c59dc43585 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Tue, 21 Jan 2014 23:07:06 +0100
Subject: db/upnp: remove redundant objid.empty() check from VisitServer()

If Namei() succeeds, the object id is guaranteed to be set.
---
 src/db/UpnpDatabasePlugin.cxx | 4 ----
 1 file changed, 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"
-- 
cgit v1.2.3