aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2014-11-25 02:52:48 -0500
committerSteve French <steve.french@primarydata.com>2014-12-08 00:43:10 -0500
commit15d987063348c93adb3e7c7378226abea03608e2 (patch)
treeee34a806acc7ee27acb732ee07d723eac67787c0
parentee9bbf465d8bb82ff2081834cb53a0ea7574c423 (diff)
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>
-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)
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) {