From: Miklos Szeredi <miklos@szeredi.hu>
To: Wei Yongjun <weiyj.lk@gmail.com>
Cc: yongjun_wei@trendmicro.com.cn, fuse-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fuse: remove unused variable in fuse_try_move_page()
Date: Sat, 10 Nov 2012 16:59:33 +0100 [thread overview]
Message-ID: <87haoxa1p6.fsf@tucsk.pomaz.szeredi.hu> (raw)
In-Reply-To: <CAPgLHd8MSy-k8Vpdw7r8iP3XL8Od-3jVGBzs63gnCv75yM8KUQ@mail.gmail.com> (Wei Yongjun's message of "Thu, 18 Oct 2012 22:51:25 +0800")
Wei Yongjun <weiyj.lk@gmail.com> writes:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> The variables mapping,index are initialized but never used
> otherwise, so remove the unused variables.
>
> dpatch engine is used to auto generate this patch.
> (https://github.com/weiyj/dpatch)
Thanks, applied.
Miklos
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> ---
> fs/fuse/dev.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
> index 8c23fa7..53c294c 100644
> --- a/fs/fuse/dev.c
> +++ b/fs/fuse/dev.c
> @@ -692,8 +692,6 @@ static int fuse_try_move_page(struct fuse_copy_state *cs, struct page **pagep)
> struct page *oldpage = *pagep;
> struct page *newpage;
> struct pipe_buffer *buf = cs->pipebufs;
> - struct address_space *mapping;
> - pgoff_t index;
>
> unlock_request(cs->fc, cs->req);
> fuse_copy_finish(cs);
> @@ -724,9 +722,6 @@ static int fuse_try_move_page(struct fuse_copy_state *cs, struct page **pagep)
> if (fuse_check_page(newpage) != 0)
> goto out_fallback_unlock;
>
> - mapping = oldpage->mapping;
> - index = oldpage->index;
> -
> /*
> * This is a new and locked page, it shouldn't be mapped or
> * have any special flags on it
prev parent reply other threads:[~2012-11-10 15:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-18 14:51 [PATCH] fuse: remove unused variable in fuse_try_move_page() Wei Yongjun
2012-11-10 15:59 ` Miklos Szeredi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87haoxa1p6.fsf@tucsk.pomaz.szeredi.hu \
--to=miklos@szeredi.hu \
--cc=fuse-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=weiyj.lk@gmail.com \
--cc=yongjun_wei@trendmicro.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).