staging: wilc1000: merge 'if' statements that test the same condition
authorDafna Hirschfeld <dafna3@gmail.com>
Sat, 24 Feb 2018 10:27:26 +0000 (12:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Feb 2018 14:47:40 +0000 (15:47 +0100)
commitea6430324da47faec9f68da3275628dbdc53d80c
treeb0504b023edeaa0ee567062b79a697bfebd06e60
parent3294a9c58ac5f658b423cce78343b19dd1eee61d
staging: wilc1000: merge 'if' statements that test the same condition

Merge the instructions of two 'if' statements that test the same
condition and move a 'memcpy' instruction related to a different variable.
Issue found with coccicheck.

Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c