]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: xgifb: Compress return logic
authorBhumika Goyal <bhumirks@gmail.com>
Sun, 18 Sep 2016 09:05:59 +0000 (14:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Sep 2016 10:37:43 +0000 (12:37 +0200)
commit7ed97ed463e8343af9a1ab14319dcdd3a95c25d6
tree91393fe4e352a8c156b68ad5b096dc8853bc0b77
parent2e8858d307cf1fa2b3ce3be4b53ef32842c64af0
Staging: xgifb: Compress return logic

This patch compresses the  return logic into a single statement
and removes the now unused return variable.
Done using coccinelle:
@@
type T;
identifier r;
@@
- T r;
... when !=r
- r =
+ return
     ...;
- return r;

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/XGI_main_26.c