merged into cifs-2.6.git On Tue, Nov 25, 2014 at 1:52 AM, Namjae Jeon <[email protected]> wrote: > 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 <[email protected]> > Signed-off-by: Ashish Sangwan <[email protected]> > --- > fs/cifs/readdir.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c > index d116ca8..8eaf20a 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) { > -- > 1.7.11-rc0 >
-- Thanks, Steve -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
