Fix some Coverity warnings.

This commit is contained in:
Robin Sommer 2016-08-02 11:38:07 -07:00
parent a273143e7d
commit 3adad5e19a
7 changed files with 27 additions and 8 deletions

View file

@ -640,8 +640,6 @@ bool Manager::RemoveFilter(EnumVal* id, string name)
bool Manager::Write(EnumVal* id, RecordVal* columns)
{
bool error = false;
Stream* stream = FindStream(id);
if ( ! stream )
return false;
@ -850,9 +848,6 @@ bool Manager::Write(EnumVal* id, RecordVal* columns)
Unref(columns);
if ( error )
RemoveDisabledWriters(stream);
return true;
}