mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
platform: rtcpu: fix coverity defect
Unchecked return value CID: 10165906 Bug 3952896 Change-Id: Ie2fc93ed97bbeac57bd210a84222da4102e84478 Signed-off-by: Ankur Pawar <ankurp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2886444 Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Matti Ryttylainen <mryttylainen@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
698b118bea
commit
82d83f4250
@@ -206,12 +206,17 @@ static void camrtc_clk_group_set_parent(const struct camrtc_clk_group *grp,
|
||||
struct clk *parent)
|
||||
{
|
||||
int index;
|
||||
int ret;
|
||||
|
||||
if (IS_ERR_OR_NULL(parent))
|
||||
return;
|
||||
|
||||
for (index = 0; index < grp->nclocks; index++)
|
||||
clk_set_parent(grp->clocks[index].clk, parent);
|
||||
for (index = 0; index < grp->nclocks; index++) {
|
||||
ret = clk_set_parent(grp->clocks[index].clk, parent);
|
||||
if (ret < 0)
|
||||
pr_err("%s: unable to set parent clock %d\n",
|
||||
__func__, ret);
|
||||
}
|
||||
}
|
||||
|
||||
int camrtc_clk_group_adjust_slow(const struct camrtc_clk_group *grp)
|
||||
|
||||
Reference in New Issue
Block a user