summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@jbarnes-acer.(none)>2009-04-08 16:38:08 -0700
committerJesse Barnes <jbarnes@jbarnes-acer.(none)>2009-04-08 17:01:57 -0700
commit7e516b6d24d8c0c6549a9a60fcf487e3a1615020 (patch)
tree15566b230501478c882c5137f1e378cb5b477e12
parent620e97bbd6a811ad69b8ac94df1fe2c9edf65549 (diff)
Silence warning in i830_dmi_store_field
Just add a dummy ret variable to shut up gcc.
-rw-r--r--src/i830_quirks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/i830_quirks.c b/src/i830_quirks.c
index 78292f72..81ea3c25 100644
--- a/src/i830_quirks.c
+++ b/src/i830_quirks.c
@@ -70,12 +70,13 @@ static char *i830_dmi_data[dmi_data_max];
static void i830_dmi_store_##field(void) \
{\
FILE *f = NULL;\
+ int ret;\
f = fopen(DMIID_FILE(field), "r");\
if (f == NULL) {\
xfree(i830_dmi_data[field]); i830_dmi_data[field] = NULL;\
return;\
}\
- fread(i830_dmi_data[field], 64, 1, f);\
+ ret = fread(i830_dmi_data[field], 64, 1, f); \
fclose(f);\
}