media: atomisp2: Remove null check before kfree

Kfree on NULL pointer is a no-op and therefore checking is redundant.

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
Himanshu Jha 2017-08-26 16:51:49 -04:00 committed by Mauro Carvalho Chehab
parent 9267d90c56
commit 727d38a891

View file

@ -295,10 +295,8 @@ void sh_css_unload_firmware(void)
}
memset(&sh_css_sp_fw, 0, sizeof(sh_css_sp_fw));
if (sh_css_blob_info) {
kfree(sh_css_blob_info);
sh_css_blob_info = NULL;
}
kfree(sh_css_blob_info);
sh_css_blob_info = NULL;
sh_css_num_binaries = 0;
}