There's no need to have a check when setting timing.past_jiffies,
as we can simply do the initialization earlier at vidtv_mux_init().
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
/* call this at every thread iteration */
u64 elapsed_time;
- /* this will not hold a value yet if we have just started */
- m->timing.past_jiffies = m->timing.current_jiffies ?
- m->timing.current_jiffies :
- get_jiffies_64();
-
+ m->timing.past_jiffies = m->timing.current_jiffies;
m->timing.current_jiffies = get_jiffies_64();
elapsed_time = jiffies_to_usecs(m->timing.current_jiffies -
m->pcr_pid = args.pcr_pid;
m->transport_stream_id = args.transport_stream_id;
m->priv = args.priv;
+ m->timing.current_jiffies = get_jiffies_64();
if (args.channels)
m->channels = args.channels;