Avoids double setting a variable.
Some code analyzers could complain about it
---
src/usb-device-cd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/usb-device-cd.c b/src/usb-device-cd.c
index b03d6838..03b8f5ee 100644
--- a/src/usb-device-cd.c
+++ b/src/usb-device-cd.c
@@ -341,7 +341,7 @@ static int cd_device_check(SpiceCdLU *unit)
static gboolean open_stream(SpiceCdLU *unit, const char *filename)
{
- gboolean b = FALSE;
+ gboolean b;
b = cd_device_open_stream(unit, filename) == 0;
return b;
}
--
2.20.1
_______________________________________________
Spice-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/spice-devel