Coverity pointed out an unneeded check.
Addresses-Coverity:
1518030 ("Null pointer dereferences")
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
* find_cifs_entry in case there will be reconnects during
* query_directory.
*/
- if (cfid) {
- close_cached_dir(cfid);
- cfid = NULL;
- }
+ close_cached_dir(cfid);
+ cfid = NULL;
cache_not_found:
/*
/*
* Open the and cache a directory handle.
* Only supported for the root handle.
+ * If error then *cfid is not initialized.
*/
int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon,
const char *path,