Skip to content

Commit ed104ca

Browse files
Sai Krishna PotthuripH5
authored andcommitted
reset: reset-zynqmp: Fixed the argument data type
This patch changes the data type of the variable 'val' from int to u32. Addresses-Coverity: argument of type "int *" is incompatible with parameter of type "u32 *" Signed-off-by: Sai Krishna Potthuri <[email protected]> Signed-off-by: Michal Simek <[email protected]> Link: https://lore.kernel.org/r/925cebbe4eb73c7d0a536da204748d33c7100d8c.1624448778.git.michal.simek@xilinx.com Signed-off-by: Philipp Zabel <[email protected]>
1 parent 1435f82 commit ed104ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/reset/reset-zynqmp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ static int zynqmp_reset_status(struct reset_controller_dev *rcdev,
5353
unsigned long id)
5454
{
5555
struct zynqmp_reset_data *priv = to_zynqmp_reset_data(rcdev);
56-
int val, err;
56+
int err;
57+
u32 val;
5758

5859
err = zynqmp_pm_reset_get_status(priv->data->reset_id + id, &val);
5960
if (err)

0 commit comments

Comments
 (0)