From 655ace3c74fbafe0c2d331109412c62cc56006a1 Mon Sep 17 00:00:00 2001 From: "Fabio M. De Francesco" Date: Sat, 5 Jun 2021 04:08:55 +0200 Subject: [PATCH] media: atomisp: pci: Remove unnecessary (void *) cast Removed an unnecessary (void *) cast for an argument passed to kfree(). Link: https://lore.kernel.org/linux-media/20210605020855.1065-3-fmdefrancesco@gmail.com Suggested-by: Dan Carpenter Signed-off-by: Fabio M. De Francesco Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/media/atomisp/pci/sh_css_firmware.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/atomisp/pci/sh_css_firmware.c b/drivers/staging/media/atomisp/pci/sh_css_firmware.c index 5301cc0..e1a16a5 100644 --- a/drivers/staging/media/atomisp/pci/sh_css_firmware.c +++ b/drivers/staging/media/atomisp/pci/sh_css_firmware.c @@ -363,7 +363,7 @@ void sh_css_unload_firmware(void) unsigned int i = 0; for (i = 0; i < sh_css_num_binaries; i++) { - kfree((void *)fw_minibuffer[i].name); + kfree(fw_minibuffer[i].name); kvfree(fw_minibuffer[i].buffer); } kfree(fw_minibuffer); -- 2.7.4