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

Submitted by Frediano Ziglio on Aug. 9, 2019, 2:26 p.m.

Details

Message ID 20190809142651.2967-28-fziglio@redhat.com
State Superseded
Headers show
Series "CD emulation follow ups" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Aug. 9, 2019, 2:26 p.m.
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(-)

Patch hide | download patch | download mbox

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;
 }