summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/tegra/bpmp.c
diff options
context:
space:
mode:
authorJon Hunter <jonathanh@nvidia.com>2020-07-12 12:01:15 +0200
committerThierry Reding <treding@nvidia.com>2020-07-14 17:57:18 +0200
commitedb2bca2ac48ad5fa2fcf7491fdf915a56dd24f6 (patch)
treea16d2cf668615612763e2e2520be843989a7e770 /drivers/firmware/tegra/bpmp.c
parentfirmware: tegra: Add return code checks and increase debugfs size (diff)
downloadlinux-edb2bca2ac48ad5fa2fcf7491fdf915a56dd24f6.tar.xz
linux-edb2bca2ac48ad5fa2fcf7491fdf915a56dd24f6.zip
firmware: tegra: Use consistent return variable name
Most functions in the BPMP driver use 'err' as the return variable name but there are a few places that use 'ret'. Let's use 'err' to be consistent. Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/firmware/tegra/bpmp.c')
-rw-r--r--drivers/firmware/tegra/bpmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/firmware/tegra/bpmp.c b/drivers/firmware/tegra/bpmp.c
index fe6702df24bf..4d93d8925e14 100644
--- a/drivers/firmware/tegra/bpmp.c
+++ b/drivers/firmware/tegra/bpmp.c
@@ -515,10 +515,10 @@ bool tegra_bpmp_mrq_is_supported(struct tegra_bpmp *bpmp, unsigned int mrq)
.size = sizeof(resp),
},
};
- int ret;
+ int err;
- ret = tegra_bpmp_transfer(bpmp, &msg);
- if (ret || msg.rx.ret)
+ err = tegra_bpmp_transfer(bpmp, &msg);
+ if (err || msg.rx.ret)
return false;
return resp.status == 0;