summaryrefslogtreecommitdiffstats
path: root/fs/cifs/readdir.c
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2014-11-25 16:52:48 +0900
committerSteve French <steve.french@primarydata.com>2014-12-07 23:43:10 -0600
commit15d987063348c93adb3e7c7378226abea03608e2 (patch)
treeee34a806acc7ee27acb732ee07d723eac67787c0 /fs/cifs/readdir.c
parentee9bbf465d8bb82ff2081834cb53a0ea7574c423 (diff)
downloadlinux-15d987063348c93adb3e7c7378226abea03608e2.tar.gz
linux-15d987063348c93adb3e7c7378226abea03608e2.tar.bz2
linux-15d987063348c93adb3e7c7378226abea03608e2.zip
cifs: remove unneeded condition check
file->private_data can never be null after calling initiate_cifs_search. So private null check condition is not needed. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com> Signed-off-by: Steve French <steve.french@primarydata.com>
Diffstat (limited to 'fs/cifs/readdir.c')
-rw-r--r--fs/cifs/readdir.c4
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)
if it before then restart search
if after then keep searching till find it */
- if (file->private_data == NULL) {
- rc = -EINVAL;
- goto rddir2_exit;
- }
cifsFile = file->private_data;
if (cifsFile->srch_inf.endOfSearch) {
if (cifsFile->srch_inf.emptyDir) {