No need to set kernel_leap twice in a row.
This patch removes a redundant initialization of the kernel_leap clock variable. The field is already set in clock_create a few lines earlier. Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
4b21400869
commit
c9ac677c98
1
clock.c
1
clock.c
|
@ -596,7 +596,6 @@ struct clock *clock_create(int phc_index, struct interface *iface, int count,
|
||||||
sysclk_set_leap(0);
|
sysclk_set_leap(0);
|
||||||
}
|
}
|
||||||
c->leap_set = 0;
|
c->leap_set = 0;
|
||||||
c->kernel_leap = dds->kernel_leap;
|
|
||||||
|
|
||||||
if (c->clkid != CLOCK_INVALID) {
|
if (c->clkid != CLOCK_INVALID) {
|
||||||
fadj = (int) clockadj_get_freq(c->clkid);
|
fadj = (int) clockadj_get_freq(c->clkid);
|
||||||
|
|
Loading…
Reference in New Issue