Re: [PATCH] smb/client: remove redundant NULL check before kfree()

Paulo Alcantara <[email protected]>
Newsgroups org.kernel.vger.linux-cifs
Message-ID <[email protected]>
Huiwen He <[email protected]> writes:

> From: Huiwen He <[email protected]>
>
> kfree() accepts NULL pointers, so checking tmp_cfile before freeing it
> is unnecessary and triggers a Coccinelle warning.
>
> Remove the redundant check. This does not change runtime behavior.

The same fix [1] was already sent, so I applied it.

[1] https://lore.kernel.org/all/[email protected]/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.