Remove misguiding if

This commit is contained in:
Gioacchino Mazzurco 2017-07-24 11:52:23 +02:00
parent 03cc2e629d
commit 3b1606ceb9

View File

@ -90,14 +90,11 @@ bool RsTlvBinaryData::setBinData(const void *data, uint32_t size)
void RsTlvBinaryData::TlvClear()
{
if (bin_data)
{
free(bin_data);
}
free(bin_data);
TlvShallowClear();
}
void RsTlvBinaryData::TlvShallowClear()
void RsTlvBinaryData::TlvShallowClear()
{
bin_data = NULL;
bin_len = 0;