Browse Source

Use htole32 wrapper for nonce encoding in avalon.

Con Kolivas 13 years ago
parent
commit
420329f628
1 changed files with 1 additions and 4 deletions
  1. 1 4
      driver-avalon.c

+ 1 - 4
driver-avalon.c

@@ -299,10 +299,7 @@ static int avalon_decode_nonce(struct thr_info *thr, struct work **work,
 		return -1;
 
 	info->matching_work[i]++;
-	*nonce = ar->nonce;
-#if defined (__BIG_ENDIAN__) || defined(MIPSEB)
-	*nonce = swab32(*nonce);
-#endif
+	*nonce = htole32(ar->nonce);
 
 	applog(LOG_DEBUG, "Avalon: match to work[%d](%p): %d",i, work[i],
 	       info->matching_work[i]);