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 d4d4598..8565c23 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);