staging: speakup: Remove multiple assignments
authorBurcin Akalin <brcnakalin@gmail.com>
Fri, 23 Oct 2015 19:12:14 +0000 (22:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:44:30 +0000 (19:44 -0700)
Remove multiple assignments by factorizing them.Problem found using
checkpatch.pl
CHECK: multiple assignments should be avoided

Signed-off-by: Burcin Akalin <brcnakalin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/buffers.c

index d4d45989b6050a33051fbf66c46866596bc97e28..8565c2343968a80695887ed798ce3a4a52a5df44 100644 (file)
@@ -101,6 +101,7 @@ EXPORT_SYMBOL_GPL(synth_buffer_peek);
 
 void synth_buffer_clear(void)
 {
-       buff_in = buff_out = synth_buffer;
+       buff_in = synth_buffer;
+       buff_out = synth_buffer;
 }
 EXPORT_SYMBOL_GPL(synth_buffer_clear);