From: Steve French Date: Sat, 23 Sep 2006 22:11:07 +0000 (+0000) Subject: CIFS: Use SEEK_END instead of hardcoded value X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0889a9441d98af7951c5377647413d79c84c9efa;p=openwrt%2Fstaging%2Fblogic.git CIFS: Use SEEK_END instead of hardcoded value Signed-off-by: Josef 'Jeff' Sipek Signed-off-by: Steve French --- diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index c3ef1c0d0e68..f5ba41132488 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -508,7 +508,7 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const char __user *buf, static loff_t cifs_llseek(struct file *file, loff_t offset, int origin) { /* origin == SEEK_END => we must revalidate the cached file length */ - if (origin == 2) { + if (origin == SEEK_END) { int retval = cifs_revalidate(file->f_dentry); if (retval < 0) return (loff_t)retval;