diff options
author | 2020-09-14 10:49:58 +0200 | |
---|---|---|
committer | 2020-10-07 23:18:34 +0200 | |
commit | 164ab90d0d8644d13ca498146a1732d1fff82d89 (patch) | |
tree | 54aba4eb22dda2eb6c2628267e023b5ac7e06ebe /tools/perf/scripts/python/export-to-postgresql.py | |
parent | can: xilinx_can: Check return value of set_reset_mode (diff) | |
download | linux-dev-164ab90d0d8644d13ca498146a1732d1fff82d89.tar.xz linux-dev-164ab90d0d8644d13ca498146a1732d1fff82d89.zip |
can: xilinx_can: Fix incorrect variable and initialize with a default value
Some variables with incorrect type were passed to "of_property_read_u32"
API, "of_property_read_u32" API was expecting an "u32 *" but the formal
parameter that was passed was of type "int *". Fixed the issue by
changing the variable types from "int" to "u32" and initialized with a
default value. Fixed sparse warning.
Addresses-Coverity: "incompatible_param"
Addresses-Coverity: "UNINIT(Using uninitialized value)"
Signed-off-by: Srinivas Neeli <srinivas.neeli@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/0651544d22f3c25893ca9d445b14823f0dfddfc8.1600073396.git.michal.simek@xilinx.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions