]> git.karo-electronics.de Git - linux-beck.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)
commitcf5d32736722a1abf00c432241a5477c09cd4db2
tree49803ce3aa1511dac048b6fc32cbe32e089a9492
parent3adc4aae0e597a7cdcb9ed3f99d0933bf9a4aaa6
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