Skip to content

Commit

Permalink
fuse: remove unused variable in fuse_try_move_page()
Browse files Browse the repository at this point in the history
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)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
  • Loading branch information
Wei Yongjun authored and Miklos Szeredi committed Jan 17, 2013
1 parent cdadb11 commit 8f70611
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/fuse/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8f70611

Please sign in to comment.