mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-29 23:32:04 +00:00
More style police on bitforce.
This commit is contained in:
parent
7ada258bbf
commit
44726324c2
@ -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)
|
||||
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…
x
Reference in New Issue
Block a user