[partition] Remove superfluous null check
delete is specified to handle nullptr gracefully. FIXES #1012
This commit is contained in:
parent
81ea5f5249
commit
08d41f745b
@ -98,8 +98,7 @@ erase(DeviceList& l, DeviceList::iterator& it)
|
|||||||
{
|
{
|
||||||
Device* p = *it;
|
Device* p = *it;
|
||||||
auto r = l.erase( it );
|
auto r = l.erase( it );
|
||||||
if (p)
|
delete p;
|
||||||
delete p;
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user