media: atomisp: get rid of a left-over wrapper function
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 31 May 2020 09:38:41 +0000 (11:38 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Jun 2020 17:03:57 +0000 (19:03 +0200)
The abstraction layer for kvfree() was removed, but there
is still a left-over code there.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/sh_css.c

index 5fd1daa71bf9d5fc805cbe787371aaabc3f0e56d..9815c87ca6f382db12f19030e5d70337251eee9b 100644 (file)
@@ -1863,14 +1863,6 @@ ia_css_enable_isys_event_queue(bool enable) {
        return 0;
 }
 
-void sh_css_free(void *ptr)
-{
-       if (is_vmalloc_addr(ptr))
-               vfree(ptr);
-       else
-               kfree(ptr);
-}
-
 /* For Acceleration API: Flush FW (shared buffer pointer) arguments */
 void
 sh_css_flush(struct ia_css_acc_fw *fw)