Messages in this thread | | | Date | Thu, 27 May 2021 22:52:23 +0300 | From | Sakari Ailus <> | Subject | Re: [PATCH] staging: media: atomisp: pci: Remove checks before kfree/kvfree |
| |
On Thu, May 27, 2021 at 09:39:22PM +0200, Fabio M. De Francesco wrote: > Removed checks for pointers != NULL before freeing memory. If kvfree() > and kfree() are given NULL pointers no operations are performed, so > there is no need for the above-mentioned checks. Coccinelle detected the > second of the two unnecessary checks. > > Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
-- Sakari Ailus
| |