iso_get_serial - cleanup

This commit is contained in:
twinaphex 2016-09-29 11:10:52 +02:00
parent a304b42f73
commit c8dc941c42

View File

@ -81,11 +81,11 @@ static int task_database_iterate_start(database_info_handle_t *db,
static int iso_get_serial(database_state_handle_t *db_state,
database_info_handle_t *db, const char *name, char* serial)
{
int rv;
int32_t offset = 0;
int32_t offset = 0;
const char* system_name = NULL;
int rv = detect_system(name, offset, &system_name);
if ((rv = detect_system(name, offset, &system_name)) < 0)
if (rv < 0)
return rv;
if (string_is_equal(system_name, "psp"))