mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
reset: fix build warning when CONFIG_RESET_RPMSG is not set
Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
@@ -251,7 +251,6 @@ reset_control_get_internal(FAR struct reset_controller_dev *rcdev,
|
|||||||
unsigned int index, bool shared, bool acquired)
|
unsigned int index, bool shared, bool acquired)
|
||||||
{
|
{
|
||||||
FAR struct reset_control *rstc;
|
FAR struct reset_control *rstc;
|
||||||
int ret;
|
|
||||||
|
|
||||||
DEBUGASSERT(nxmutex_is_locked(&g_reset_list_mutex));
|
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)
|
if (rcdev->ops->acquire)
|
||||||
{
|
{
|
||||||
ret = rcdev->ops->acquire(rcdev, index, shared, acquired);
|
int ret = rcdev->ops->acquire(rcdev, index, shared, acquired);
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
kmm_free(rstc);
|
kmm_free(rstc);
|
||||||
|
|||||||
Reference in New Issue
Block a user