mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Cleanup warnings and Linuxisms
Remove a variable which is assigned to but never used after that and convert a pr_warn() into an nvgpu_warn(). JIRA NVGPU-525 Signed-off-by: Alex Waterman <alexw@nvidia.com> Change-Id: Ia3ab64063ec48d6cd8a4a13cff2ab9b9c459a462 Reviewed-on: https://git-master.nvidia.com/r/1662544 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
c991410874
commit
bd95c2ce3f
@@ -71,12 +71,11 @@ void __gk20a_warn_on_no_regs(void)
|
||||
static int gk20a_detect_chip(struct gk20a *g)
|
||||
{
|
||||
struct nvgpu_gpu_params *p = &g->params;
|
||||
u32 val;
|
||||
|
||||
if (p->gpu_arch)
|
||||
return 0;
|
||||
|
||||
val = gk20a_mc_boot_0(g, &p->gpu_arch, &p->gpu_impl, &p->gpu_rev);
|
||||
gk20a_mc_boot_0(g, &p->gpu_arch, &p->gpu_impl, &p->gpu_rev);
|
||||
|
||||
gk20a_dbg_info("arch: %x, impl: %x, rev: %x\n",
|
||||
g->params.gpu_arch,
|
||||
@@ -375,8 +374,8 @@ int gk20a_wait_for_idle(struct gk20a *g)
|
||||
nvgpu_msleep(20);
|
||||
|
||||
if (wait_length < 0) {
|
||||
pr_warn("%s: Timed out waiting for idle (%d)!\n",
|
||||
__func__, nvgpu_atomic_read(&g->usage_count));
|
||||
nvgpu_warn(g, "Timed out waiting for idle (%d)!\n",
|
||||
nvgpu_atomic_read(&g->usage_count));
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user