Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 727d38a8 authored by Himanshu Jha's avatar Himanshu Jha Committed by Mauro Carvalho Chehab
Browse files

media: atomisp2: Remove null check before kfree



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

Signed-off-by: default avatarHimanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 9267d90c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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;
	}
	sh_css_num_binaries = 0;
}