]> 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)
commitaad445e6bc7c6e92d4611fa65ba124604a8ba458
tree91393fe4e352a8c156b68ad5b096dc8853bc0b77
parent850d7e2486c8d47d78539c19b70b9c91b3c0bb30
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