staging: rtl8723bs: drop test
authorJulia Lawall <Julia.Lawall@lip6.fr>
Wed, 6 Jun 2018 23:34:02 +0000 (01:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Jun 2018 07:05:14 +0000 (09:05 +0200)
commit5df204016c36a175829e6579f01244a8e2351480
tree2a14972fd22eb070f558138aa6bd03401b086f9e
parent91c458b435df86d733754b3d50d8a5d1848c51dc
staging: rtl8723bs: drop test

The test selects between two identical values, so it doesn't look useful.
It turns out that the tested expression can only be true anyway, so drop
the test, the corresponding parameter, and the corresponding argument at
the only call site.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression e,e1;
@@

* e ? e1 : e1
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c