drivers/coresight:Fix coresight_replicator.c compilation error

Fix coresight_replicator.c compilation error, ret is not initialized

Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
This commit is contained in:
chenzhijia
2024-07-11 11:45:54 +08:00
committed by Xiang Xiao
parent b5145c528e
commit 49ad5e05d5
+1 -1
View File
@@ -78,7 +78,7 @@ replicator_hw_enable(FAR struct coresight_replicator_dev_s *repdev,
{
uint32_t id0val;
uint32_t id1val;
int ret;
int ret = 0;
if (port != 0 && port != 1)
{