media: staging: media: Remove redundant NULL check
Subsystems (4)
PATCH 1/1 media: staging: media: Remove redundant NULL check
Fix the following coccicheck warnings:
./drivers/staging/media/atomisp/pci/atomisp_cmd.c:4269:2-8: WARNING:
NULL check before some freeing functions is not needed.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/staging/media/atomisp/pci/atomisp_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/media/atomisp/pci/atomisp_cmd.c +1 -2
@@ -4626,8 +4626,7 @@ int atomisp_fixed_pattern(struct atomisp_sub_device *asd, int flag, err:if (ret && res)ia_css_frame_free (res); -if (tmp_buf) -vfree (tmp_buf); +vfree (tmp_buf);if (ret ==0 ) *result = res;return ret;
Signature · 1 line
1.8.3.1