summaryrefslogtreecommitdiffstats
path: root/drivers/staging/xgifb/XGI_main.h
diff options
context:
space:
mode:
authorMiguel Gómez <magomez@igalia.com>2012-06-18 13:12:03 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-18 17:20:20 -0700
commit47cee13d1dfe9867758c82a5ef93fd96629ceefd (patch)
tree4538aba642ad91eb419f06693aa8fb37149dbbaa /drivers/staging/xgifb/XGI_main.h
parent96cd1f8b41c36c2520cc8b524734784a9e995ff2 (diff)
downloadop-kernel-dev-47cee13d1dfe9867758c82a5ef93fd96629ceefd.zip
op-kernel-dev-47cee13d1dfe9867758c82a5ef93fd96629ceefd.tar.gz
Staging: xgifb: Remove XGIFAIL() macro and its calls.
XGIFAIL() prints a message and returns a value, but it's used only in one place. Better remove it and replace the call with the macro content. Signed-off-by: Miguel Gómez <magomez@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/xgifb/XGI_main.h')
-rw-r--r--drivers/staging/xgifb/XGI_main.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/xgifb/XGI_main.h b/drivers/staging/xgifb/XGI_main.h
index ce18f8c..be6bb7d 100644
--- a/drivers/staging/xgifb/XGI_main.h
+++ b/drivers/staging/xgifb/XGI_main.h
@@ -4,8 +4,6 @@
#include "XGIfb.h"
#include "vb_def.h"
-#define XGIFAIL(x) do { printk(x "\n"); return -EINVAL; } while (0)
-
#ifndef PCI_DEVICE_ID_XGI_42
#define PCI_DEVICE_ID_XGI_42 0x042
#endif
OpenPOWER on IntegriCloud