From d8243945f23974a0e317417608166900293055e1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 17 Sep 2015 09:50:34 +0200 Subject: [PATCH] libretrodb_find_entry - small cleanup --- libretro-db/libretrodb.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libretro-db/libretrodb.c b/libretro-db/libretrodb.c index b49b5166fd..7c27fbf5e7 100644 --- a/libretro-db/libretrodb.c +++ b/libretro-db/libretrodb.c @@ -314,12 +314,7 @@ int libretrodb_find_entry(libretrodb_t *db, const char *index_name, if (rv == 0) lseek(db->fd, offset, SEEK_SET); - rv = rmsgpack_dom_read(db->fd, out); - - if (rv < 0) - return rv; - - return rv; + return rmsgpack_dom_read(db->fd, out); } /**