diff mbox

[linux-cifs-client] remove redundant check for file's private_data

Message ID 4a4634331003101049n242cf6e4kd992101ff239a265@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Shirish Pargaonkar March 10, 2010, 6:49 p.m. UTC
None
diff mbox

Patch

diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c
index c343b14..e8a7794 100644
--- a/fs/cifs/readdir.c
+++ b/fs/cifs/readdir.c
@@ -812,11 +812,7 @@  int cifs_readdir(struct file *file, void
*direntry, filldir_t filldir)
 				return rc;
 			}
 		}
-		if (file->private_data == NULL) {
-			rc = -EINVAL;
-			FreeXid(xid);
-			return rc;
-		}
+
 		cifsFile = file->private_data;
 		if (cifsFile->srch_inf.endOfSearch) {