hte: Uninitialized variable in hte_ts_get()

The "free_name" variable is sometimes used without being initialized.

Fixes: 31ab09b421 ("drivers: Add hardware timestamp engine (HTE) subsystem")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Dipen Patel <dipenp@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
Dan Carpenter 2022-05-06 17:54:31 +03:00 committed by Thierry Reding
parent e30b64a3ab
commit 348b10b075
1 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,7 @@ int hte_ts_get(struct device *dev, struct hte_ts_desc *desc, int index)
struct of_phandle_args args;
u32 xlated_id;
int ret;
bool free_name;
bool free_name = false;
if (!desc)
return -EINVAL;