mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
refclock: drop return after LOG_FATAL
The LOG_FATAL macro expands to (emitting the message and then) exit(1). So a return after LOG_FATAL isn't reached. Drop all those to simplify the code a bit.
This commit is contained in:
committed by
Miroslav Lichvar
parent
2ca2c85365
commit
aa22c515ce
@@ -66,10 +66,8 @@ static int phc_initialise(RCL_Instance instance)
|
||||
path = RCL_GetDriverParameter(instance);
|
||||
|
||||
phc_fd = SYS_Linux_OpenPHC(path, 0);
|
||||
if (phc_fd < 0) {
|
||||
if (phc_fd < 0)
|
||||
LOG_FATAL("Could not open PHC");
|
||||
return 0;
|
||||
}
|
||||
|
||||
phc = MallocNew(struct phc_instance);
|
||||
phc->fd = phc_fd;
|
||||
|
||||
Reference in New Issue
Block a user