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)
commit56487aed9597569f5db716c86f9bc93aea1bd3b6
tree91393fe4e352a8c156b68ad5b096dc8853bc0b77
parent25670ba3f3719e6121a2b1a3c216833d1a9e1d89
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