Commit ba3d6419 authored by Andrew Morton's avatar Andrew Morton Committed by Jens Axboe

[PATCH] fid dmi compile warning

Local variable `data' is only used for debugging.
parent 2829a935
...@@ -21,8 +21,13 @@ struct dmi_header ...@@ -21,8 +21,13 @@ struct dmi_header
u16 handle; u16 handle;
}; };
#undef DMI_DEBUG
#ifdef DMI_DEBUG
#define dmi_printk(x) printk x
#else
#define dmi_printk(x) #define dmi_printk(x)
//#define dmi_printk(x) printk x #endif
static char * __init dmi_string(struct dmi_header *dm, u8 s) static char * __init dmi_string(struct dmi_header *dm, u8 s)
{ {
...@@ -832,7 +837,9 @@ static __init void dmi_check_blacklist(void) ...@@ -832,7 +837,9 @@ static __init void dmi_check_blacklist(void)
static void __init dmi_decode(struct dmi_header *dm) static void __init dmi_decode(struct dmi_header *dm)
{ {
#ifdef DMI_DEBUG
u8 *data = (u8 *)dm; u8 *data = (u8 *)dm;
#endif
switch(dm->type) switch(dm->type)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment