[Spice-devel] [PATCH spice-gtk v2 27/33] fixup! usb-redir: add implementation of emulated CD device

Frediano Ziglio fziglio at redhat.com
Fri Aug 9 14:26:45 UTC 2019


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



More information about the Spice-devel mailing list