loader: bcache code does not need to check argument for free()
This commit is contained in:
parent
74772ef1ae
commit
e3e96239cd
@ -426,10 +426,8 @@ static void
|
||||
bcache_free_instance(struct bcache *bc)
|
||||
{
|
||||
if (bc != NULL) {
|
||||
if (bc->bcache_ctl)
|
||||
free(bc->bcache_ctl);
|
||||
if (bc->bcache_data)
|
||||
free(bc->bcache_data);
|
||||
free(bc->bcache_ctl);
|
||||
free(bc->bcache_data);
|
||||
free(bc);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user