]> www.infradead.org Git - users/dwmw2/linux.git/commit
hexagon: time: Remove redundant null check for resource
authorHardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>
Mon, 11 Nov 2024 14:24:10 +0000 (19:54 +0530)
committerBrian Cain <brian.cain@oss.qualcomm.com>
Fri, 31 Jan 2025 02:45:32 +0000 (18:45 -0800)
commite1e481edf9718222eeb285c41c1837c1c6b0afbd
treea38a032eee29fa23d6b685e09c722d9053af759e
parent8a20030038742b9915c6d811a4e6c14b126cafb4
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: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>
Link: https://lore.kernel.org/r/20241111142458.67854-1-hardevsinh.palaniya@siliconsignals.io
Signed-off-by: Brian Cain <bcain@quicinc.com>
Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
arch/hexagon/kernel/time.c