loader: bcache code does not need to check argument for free()

This commit is contained in:
Toomas Soome 2019-05-07 08:14:30 +00:00
parent 74772ef1ae
commit e3e96239cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347220

View File

@ -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);
}
}