Browse Source

kncasic: Initialise first_cgpu to silence false warning

Luke Dashjr 11 years ago
parent
commit
9a7328f419
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-kncasic.c

+ 1 - 1
driver-kncasic.c

@@ -283,7 +283,7 @@ static bool knc_detect_one(void *ctx)
 	knc->generation = 1;
 	knc->generation = 1;
 
 
 	/* Index all cores */
 	/* Index all cores */
-	struct cgpu_info *prev_cgpu = NULL, *first_cgpu;
+	struct cgpu_info *prev_cgpu = NULL, *first_cgpu = NULL;
 	int dies = 0;
 	int dies = 0;
 	cores = 0;
 	cores = 0;
 	struct knc_core_state *pcore = knc->core;
 	struct knc_core_state *pcore = knc->core;