diff options
-rw-r--r-- | fs/cifs/readdir.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c index 8fd2a95860ba..803030c9ab68 100644 --- a/fs/cifs/readdir.c +++ b/fs/cifs/readdir.c | |||
@@ -794,10 +794,6 @@ int cifs_readdir(struct file *file, struct dir_context *ctx) | |||
794 | if it before then restart search | 794 | if it before then restart search |
795 | if after then keep searching till find it */ | 795 | if after then keep searching till find it */ |
796 | 796 | ||
797 | if (file->private_data == NULL) { | ||
798 | rc = -EINVAL; | ||
799 | goto rddir2_exit; | ||
800 | } | ||
801 | cifsFile = file->private_data; | 797 | cifsFile = file->private_data; |
802 | if (cifsFile->srch_inf.endOfSearch) { | 798 | if (cifsFile->srch_inf.endOfSearch) { |
803 | if (cifsFile->srch_inf.emptyDir) { | 799 | if (cifsFile->srch_inf.emptyDir) { |