]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7ab196927282a4652e2946a762941b6d31dcf2bf
tree2a14972fd22eb070f558138aa6bd03401b086f9e
parentf8ad6544e7372336caab6c2a8d504445b25e80d5
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