]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8192e: Remove multiple assignments
authorGargi Sharma <gs051095@gmail.com>
Sat, 11 Mar 2017 14:57:20 +0000 (20:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 13:46:34 +0000 (14:46 +0100)
commit15530f93a56ac5ccb8a04d1b03d4827fa402a522
tree33c1438a7c704e02a70018f5c42559cbbb9a3a5e
parent5d7db089d2d859b1c7ade254ffbb522953b4fce0
staging: rtl8192e: Remove multiple assignments

This patch removes multiple assignments by factorizing them.
This was done with Coccinelle for the if branch. For the else part
the change was done manually. Braces were also added to the
else part to remove the checkpatch warning, "braces should be
on all arms of if-else statements".

@ identifier i1,i2; constant c; @@
- i1=i2=c;
+ i1=c;
+ i2=c;

Signed-off-by: Gargi Sharma <gs051095@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c