Browse Source

More style police on bitforce.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
44726324c2
  1. 7
      driver-bitforce.c

7
driver-bitforce.c

@ -96,10 +96,9 @@ static bool bitforce_detect_one(const char *devpath) @@ -96,10 +96,9 @@ static bool bitforce_detect_one(const char *devpath)
static char bitforce_detect_auto()
{
return
serial_autodetect_udev (bitforce_detect_one, "BitFORCE*SHA256") ?:
return (serial_autodetect_udev (bitforce_detect_one, "BitFORCE*SHA256") ?:
serial_autodetect_devserial(bitforce_detect_one, "BitFORCE_SHA256") ?:
0;
0);
}
static void bitforce_detect()
@ -124,7 +123,7 @@ static bool bitforce_thread_prepare(struct thr_info *thr) @@ -124,7 +123,7 @@ static bool bitforce_thread_prepare(struct thr_info *thr)
int fdDev = BFopen(bitforce->device_path);
struct timeval now;
if (unlikely(-1 == fdDev)) {
if (unlikely(fdDev == -1)) {
applog(LOG_ERR, "BFL%i: Failed to open %s", bitforce->device_id, bitforce->device_path);
return false;
}

Loading…
Cancel
Save