]> 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)
commit14f9c0e7be682ab612a537e991460208e80389d1
tree49803ce3aa1511dac048b6fc32cbe32e089a9492
parente0c00a86b95285d681d1ca7adfbc5501860d5f76
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