mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
gpu: nvgpu: fix MISRA Rule 2.2 no dead code
MISRA rule 2.2 defines dead code as "operations which are executed but removal of these operations has no effect on program behavior". Variable initializations violate this rule if initialized value is not used and replaced. This patch fixes some of these reported violations. Jira NVGPU-858 Change-Id: I694517ace8884c78c63f6346e455078d19b70b4d Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2110459 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
9a450fe2bf
commit
c90fcbae2a
@@ -1313,7 +1313,6 @@ static int nvgpu_vm_compute_compression(struct vm_gk20a *vm,
|
||||
"Unsupported page size for compressible "
|
||||
"kind, demoting to incompressible");
|
||||
binfo->compr_kind = NVGPU_KIND_INVALID;
|
||||
kind_compressible = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user