mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
reset: fix build warning when CONFIG_RESET_RPMSG is not set
Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
parent
96206cbf9d
commit
e8f9ef022f
1 changed files with 2 additions and 2 deletions
|
|
@ -251,7 +251,6 @@ reset_control_get_internal(FAR struct reset_controller_dev *rcdev,
|
|||
unsigned int index, bool shared, bool acquired)
|
||||
{
|
||||
FAR struct reset_control *rstc;
|
||||
int ret;
|
||||
|
||||
DEBUGASSERT(nxmutex_is_locked(&g_reset_list_mutex));
|
||||
|
||||
|
|
@ -295,7 +294,8 @@ reset_control_get_internal(FAR struct reset_controller_dev *rcdev,
|
|||
|
||||
if (rcdev->ops->acquire)
|
||||
{
|
||||
ret = rcdev->ops->acquire(rcdev, index, shared, acquired);
|
||||
int ret = rcdev->ops->acquire(rcdev, index, shared, acquired);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
kmm_free(rstc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue