discover: fix return value for discover_device_get_param
[petitboot] / discover / device-handler.c
index b083af4d0c6cdc0d406e9f609bcd7b387d4f6cbe..f1845a9479f4de878bfab4f5d6dcecbfcb1e69b1 100644 (file)
@@ -250,7 +250,7 @@ const char *discover_device_get_param(struct discover_device *device,
 
        list_for_each_entry(&device->params, param, list) {
                if (!strcmp(param->name, name))
-                       return param->name;
+                       return param->value;
        }
        return NULL;
 }