Skip to content

Commit

Permalink
ext4: remove write-only variables from ext4_ordered_write_end
Browse files Browse the repository at this point in the history
The variables 'from' and 'to' are not used anywhere.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Acked-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Eric Sandeen authored and Theodore Ts'o committed Aug 3, 2008
1 parent 00b32b7 commit 7d55992
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1424,12 +1424,8 @@ static int ext4_ordered_write_end(struct file *file,
{
handle_t *handle = ext4_journal_current_handle();
struct inode *inode = mapping->host;
unsigned from, to;
int ret = 0, ret2;

from = pos & (PAGE_CACHE_SIZE - 1);
to = from + len;

ret = ext4_jbd2_file_inode(handle, inode);

if (ret == 0) {
Expand Down

0 comments on commit 7d55992

Please sign in to comment.