Patchwork [2/2] ext4: remove unused variable flags

login
register
mail settings
Submitter Lukas Czerner
Date Jan. 24, 2013, 4:30 p.m.
Message ID <1359045044-31435-2-git-send-email-lczerner@redhat.com>
Download mbox | patch
Permalink /patch/215436/
State Superseded
Headers show

Comments

Lukas Czerner - Jan. 24, 2013, 4:30 p.m.
Remove unused variable flags from dump_completed_IO(). The code is only
exercised when EXT4FS_DEBUG is defined.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
---
 fs/ext4/page-io.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
Zheng Liu - Jan. 24, 2013, 4:46 p.m.
在 2013-1-25,上午12:30,Lukas Czerner <lczerner@redhat.com> 写道:

> Remove unused variable flags from dump_completed_IO(). The code is only
> exercised when EXT4FS_DEBUG is defined.
> 
> Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Regards,
                                                - Zheng
> ---
> fs/ext4/page-io.c |    1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
> 
> diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c
> index 0016fbc..3331a76 100644
> --- a/fs/ext4/page-io.c
> +++ b/fs/ext4/page-io.c
> @@ -119,7 +119,6 @@ static void dump_completed_IO(struct inode *inode)
> #ifdef    EXT4FS_DEBUG
>    struct list_head *cur, *before, *after;
>    ext4_io_end_t *io, *io0, *io1;
> -    unsigned long flags;
> 
>    if (list_empty(&EXT4_I(inode)->i_completed_io_list)) {
>        ext4_debug("inode %lu completed_io list is empty\n",
> -- 
> 1.7.7.6
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c
index 0016fbc..3331a76 100644
--- a/fs/ext4/page-io.c
+++ b/fs/ext4/page-io.c
@@ -119,7 +119,6 @@  static void dump_completed_IO(struct inode *inode)
 #ifdef	EXT4FS_DEBUG
 	struct list_head *cur, *before, *after;
 	ext4_io_end_t *io, *io0, *io1;
-	unsigned long flags;
 
 	if (list_empty(&EXT4_I(inode)->i_completed_io_list)) {
 		ext4_debug("inode %lu completed_io list is empty\n",