[ncp-base] add IgnoreReturnValue when error should be ignored (#3415)

This change adds `IgnoreReturnValue` when the returned error can be
safely ignored. This should help address a Coverity warning.
This commit is contained in:
Abtin Keshavarzian
2019-01-02 09:04:42 -08:00
committed by Jonathan Hui
parent 041c14080a
commit 49945221dd
+2 -1
View File
@@ -1651,7 +1651,8 @@ exit:
if (error != OT_ERROR_NONE)
{
WritePropertyValueIsFrame(SPINEL_HEADER_FLAG | SPINEL_HEADER_IID_0, SPINEL_PROP_UNSOL_UPDATE_FILTER);
IgnoreReturnValue(
WritePropertyValueIsFrame(SPINEL_HEADER_FLAG | SPINEL_HEADER_IID_0, SPINEL_PROP_UNSOL_UPDATE_FILTER));
}
return error;