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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]