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]/