diff options
author | Gargi Sharma <gs051095@gmail.com> | 2017-03-15 00:13:21 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-16 11:34:53 +0900 |
commit | 4cad1589108fc55b1fa9c42ae610337847f2f100 (patch) | |
tree | 64b0306a109266352c681691c862ca093a052098 /drivers/gpio/gpio-lpc18xx.c | |
parent | adab24a4a785d4bd7f2b2fd25e2129973caff667 (diff) |
staging: rtl8192u: 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 since Coccinelle only detects constants.
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>
Diffstat (limited to 'drivers/gpio/gpio-lpc18xx.c')
0 files changed, 0 insertions, 0 deletions