Commit e1e481ed authored by Hardevsinh Palaniya's avatar Hardevsinh Palaniya Committed by Brian Cain
Browse files

hexagon: time: Remove redundant null check for resource



Null check for 'resource' before assignment is unnecessary because the
variable 'resource' is initialized to NULL at the beginning of the function.

Signed-off-by: default avatarHardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>
Link: https://lore.kernel.org/r/20241111142458.67854-1-hardevsinh.palaniya@siliconsignals.io


Signed-off-by: default avatarBrian Cain <bcain@quicinc.com>
Signed-off-by: default avatarBrian Cain <brian.cain@oss.qualcomm.com>
parent 8a200300
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -170,7 +170,6 @@ static void __init time_init_deferred(void)

	ce_dev->cpumask = cpu_all_mask;

	if (!resource)
	resource = rtos_timer_device.resource;

	/*  ioremap here means this has to run later, after paging init  */