]> git.baikalelectronics.ru Git - kernel.git/commit
staging: xgifb: Remove unused variable and if statement
authorRehas Sachdeva <aquannie@gmail.com>
Tue, 20 Sep 2016 14:10:14 +0000 (19:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2016 09:54:47 +0000 (11:54 +0200)
commit715f776abce9b86009b1c74abdca84f66c40f796
tree49803ce3aa1511dac048b6fc32cbe32e089a9492
parentbebde1a75b60b5a5f54c19f8dda4e76daedec568
staging: xgifb: Remove unused variable and if statement

Setting the variable 'refresh_rate = 60;' has no use to the rest of the
function. Hence the if statement setting it and the variable itself can be
removed. This was detected using the following Coccinelle semantic patch:

@@
type T;
identifier i;
constant C;
@@
(
extern T i;
|
- T i;
  <+... when != i
- i = C;
  ...+>
)

Signed-off-by: Rehas Sachdeva <aquannie@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/XGI_main_26.c