aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2007-04-02 14:47:20 -0400
committerSteve French <sfrench@us.ibm.com>2007-04-02 14:47:20 -0400
commitc33f8d32746db12ba353b0a05b25f7893a0ac344 (patch)
tree874d9ae5afa5c1d1688105974b7ef8e8c3335302 /fs/cifs/cifsfs.c
parent2e175a90047a2dbc76fde169c990164895b25dfc (diff)
[CIFS] Remove unnecessary checks
file->f_path.dentry or file->f_path.dentry.d_inode can't be NULL since at least ten years, similar for all but very few arguments passed in from the VFS. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index faba4d69fe91..dd03e680f8f8 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -529,8 +529,7 @@ static loff_t cifs_llseek(struct file *file, loff_t offset, int origin)
529 /* some applications poll for the file length in this strange 529 /* some applications poll for the file length in this strange
530 way so we must seek to end on non-oplocked files by 530 way so we must seek to end on non-oplocked files by
531 setting the revalidate time to zero */ 531 setting the revalidate time to zero */
532 if(file->f_path.dentry->d_inode) 532 CIFS_I(file->f_path.dentry->d_inode)->time = 0;
533 CIFS_I(file->f_path.dentry->d_inode)->time = 0;
534 533
535 retval = cifs_revalidate(file->f_path.dentry); 534 retval = cifs_revalidate(file->f_path.dentry);
536 if (retval < 0) 535 if (retval < 0)