Re: [RESEND PATCH] drm/vmwgfx: Remove unnecessary NULL checks before kvfree()

2024-10-10 Thread Zack Rusin
On Mon, Oct 7, 2024 at 7:52 AM Thorsten Blum wrote: > > Since kvfree() already checks if its argument is NULL, an additional > check before calling kvfree() is unnecessary and can be removed. > > Remove both and the following Coccinelle/coccicheck warnings reported by > ifnullfree.cocci: > > WAR

[RESEND PATCH] drm/vmwgfx: Remove unnecessary NULL checks before kvfree()

2024-10-07 Thread Thorsten Blum
Since kvfree() already checks if its argument is NULL, an additional check before calling kvfree() is unnecessary and can be removed. Remove both and the following Coccinelle/coccicheck warnings reported by ifnullfree.cocci: WARNING: NULL check before some freeing functions is not needed WARN

[PATCH] drm/vmwgfx: Remove unnecessary NULL checks before kvfree()

2024-09-23 Thread Thorsten Blum
Since kvfree() already checks if its argument is NULL, an additional check before calling kvfree() is unnecessary and can be removed. Remove both and the following Coccinelle/coccicheck warnings reported by ifnullfree.cocci: WARNING: NULL check before some freeing functions is not needed WARN