mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-24 10:13:00 +03:00
tegra: hwpm: resolve coverity defects
Resolve coverity violations: - Correct invalid arguments in debug prints - Modify if statement to compare similar data types - Update tegra_hwpm_map_stream_buffer() return statements. Bug 3461002 Change-Id: Ic299a594bc371bac4a96a035f31961a586486083 Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2675433 Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> Reviewed-by: Vasuki Shankar <vasukis@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
92be6f7a00
commit
7f5bfd3176
@@ -55,7 +55,7 @@ static u32 ip_readl(struct tegra_soc_hwpm *hwpm,
|
||||
struct hwpm_ip_aperture *aperture, u64 offset)
|
||||
{
|
||||
tegra_hwpm_dbg(hwpm, hwpm_register,
|
||||
"Aperture (0x%llx-0x%llx) offset(0x%x)",
|
||||
"Aperture (0x%llx-0x%llx) offset(0x%llx)",
|
||||
aperture->start_abs_pa, aperture->end_abs_pa, offset);
|
||||
|
||||
if (hwpm->fake_registers_enabled) {
|
||||
@@ -147,9 +147,8 @@ static u32 hwpm_readl(struct tegra_soc_hwpm *hwpm,
|
||||
struct hwpm_ip_aperture *aperture, u32 offset)
|
||||
{
|
||||
tegra_hwpm_dbg(hwpm, hwpm_register,
|
||||
"Aperture (0x%llx-0x%llx) base 0x%llx offset(0x%x)",
|
||||
aperture->start_abs_pa, aperture->end_abs_pa,
|
||||
(u64 *)aperture->dt_mmio, offset);
|
||||
"Aperture (0x%llx-0x%llx) offset(0x%x)",
|
||||
aperture->start_abs_pa, aperture->end_abs_pa, offset);
|
||||
|
||||
if (aperture->dt_mmio == NULL) {
|
||||
tegra_hwpm_err(hwpm, "aperture is not iomapped as expected");
|
||||
@@ -171,9 +170,8 @@ static void hwpm_writel(struct tegra_soc_hwpm *hwpm,
|
||||
struct hwpm_ip_aperture *aperture, u32 offset, u32 val)
|
||||
{
|
||||
tegra_hwpm_dbg(hwpm, hwpm_register,
|
||||
"Aperture (0x%llx-0x%llx) base 0x%llx offset(0x%x) val(0x%x)",
|
||||
aperture->start_abs_pa, aperture->end_abs_pa,
|
||||
(u64 *)aperture->dt_mmio, offset, val);
|
||||
"Aperture (0x%llx-0x%llx) offset(0x%x) val(0x%x)",
|
||||
aperture->start_abs_pa, aperture->end_abs_pa, offset, val);
|
||||
|
||||
if (aperture->dt_mmio == NULL) {
|
||||
tegra_hwpm_err(hwpm, "aperture is not iomapped as expected");
|
||||
|
||||
Reference in New Issue
Block a user