discover: fix return value for discover_device_get_param