mraa.c: Add MRAA_SUCCESS return to mraa_remove_subplatform
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -1051,6 +1051,7 @@ mraa_remove_subplatform(mraa_platform_t subplatformtype)
|
|||||||
free(plat->sub_platform->adv_func);
|
free(plat->sub_platform->adv_func);
|
||||||
free(plat->sub_platform->pins);
|
free(plat->sub_platform->pins);
|
||||||
free(plat->sub_platform);
|
free(plat->sub_platform);
|
||||||
|
return MRAA_SUCCESS;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return MRAA_ERROR_INVALID_PARAMETER;
|
return MRAA_ERROR_INVALID_PARAMETER;
|
||||||
|
|||||||
Reference in New Issue
Block a user