diff mbox

[V9fs-developer] Subject: [PATCH 1/2] fs/v9fs: Remove the unused variable "err" in v9fs_vfs_getattr()

Message ID 51CA4F89.7030204@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

Gu Zheng June 26, 2013, 2:18 a.m. UTC
Delete the unused variable "err" in v9fs_vfs_getattr()

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
---
 fs/9p/vfs_inode.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Comments

Eric Van Hensbergen June 28, 2013, 5:45 p.m. UTC | #1
Isn't this just a duplicate of the first patch in the patch series?  Also,
something funky with your mail client as the patch didn't "just apply".
 Since its short I'll go ahead and patch it by hand.

    Thanks,
        -eric



On Tue, Jun 25, 2013 at 9:18 PM, Gu Zheng <guz.fnst@cn.fujitsu.com> wrote:

> Delete the unused variable "err" in v9fs_vfs_getattr()
>
> Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
> ---
>  fs/9p/vfs_inode.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
> index d86edc8..25b018e 100644
> --- a/fs/9p/vfs_inode.c
> +++ b/fs/9p/vfs_inode.c
> @@ -1054,13 +1054,11 @@ static int
>  v9fs_vfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
>                  struct kstat *stat)
>  {
> -       int err;
>         struct v9fs_session_info *v9ses;
>         struct p9_fid *fid;
>         struct p9_wstat *st;
>
>         p9_debug(P9_DEBUG_VFS, "dentry: %p\n", dentry);
> -       err = -EPERM;
>         v9ses = v9fs_dentry2v9ses(dentry);
>         if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
>                 generic_fillattr(dentry->d_inode, stat);
> --
> 1.7.7
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
diff mbox

Patch

diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index d86edc8..25b018e 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -1054,13 +1054,11 @@  static int
 v9fs_vfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
                 struct kstat *stat)
 {
-       int err;
        struct v9fs_session_info *v9ses;
        struct p9_fid *fid;
        struct p9_wstat *st;
 
        p9_debug(P9_DEBUG_VFS, "dentry: %p\n", dentry);
-       err = -EPERM;
        v9ses = v9fs_dentry2v9ses(dentry);
        if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
                generic_fillattr(dentry->d_inode, stat);