media: atomisp: pci: Remove unnecessary (void *) cast
authorFabio M. De Francesco <fmdefrancesco@gmail.com>
Sat, 5 Jun 2021 02:08:55 +0000 (04:08 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 22 Jul 2021 12:01:56 +0000 (14:01 +0200)
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 <dan.carpenter@oracle.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/sh_css_firmware.c

index 5301cc014c7e6ac4267ace986d8473f5d2a7ffda..e1a16a50e5884fc6737b035804e7c105f52bf39b 100644 (file)
@@ -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);