summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xine-utils/xine_check.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/xine-utils/xine_check.c b/src/xine-utils/xine_check.c
index 33519c342..22dde24f0 100644
--- a/src/xine-utils/xine_check.c
+++ b/src/xine-utils/xine_check.c
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2000-2002 the xine project
+* Copyright (C) 2000-2003 the xine project
*
* This file is part of xine, a free video player.
*
@@ -175,11 +175,10 @@ xine_health_check_t* xine_health_check_mtrr (xine_health_check_t* hc) {
hc->explanation = "Make sure your kernel has MTRR support compiled in.";
fd = fopen(file, "r");
- if (fd < 0) {
+ if (!fd) {
set_hc_result (hc, XINE_HEALTH_CHECK_FAIL,
"FAILED: mtrr is not enabled.");
- }
- else {
+ } else {
hc->status = XINE_HEALTH_CHECK_OK;
fclose (fd);
}