]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: xgifb: remove macros with hidden variable
authorJoshua Abraham <j.abraham1776@gmail.com>
Sat, 2 Dec 2017 01:39:09 +0000 (20:39 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Dec 2017 08:59:27 +0000 (09:59 +0100)
commitf8de92c9f616d87881a772f5d25d8d4041455573
tree7202b2b6a26a0e1c314eaa473033e6c9850bdd74
parent9911bac0cb4bd6abab6ba6fd8aed20074440be69
staging: xgifb: remove macros with hidden variable

This patch removes macros in XGI_main.h that contain a xgifb_info
variable.  These macros hurt readability by hiding said variable
behind a define.  It also uses a temporary variable to keep the
replaced code from getting too long.

Signed-off-by: Joshua Abraham <j.abraham1776@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/XGI_main.h
drivers/staging/xgifb/XGI_main_26.c