linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] btrfs: Remove useless variable in write_ctree_super()
       [not found] <20131030215915.GA26170@gmail.com>
@ 2013-10-31 11:20 ` Rashika Kheria
  2013-11-02 16:56   ` [OPW kernel] " Josh Triplett
  0 siblings, 1 reply; 2+ messages in thread
From: Rashika Kheria @ 2013-10-31 11:20 UTC (permalink / raw)
  To: opw-kernel, linux-btrfs

The function write_ctree_super() in disk-io.c uses variable ret to return
the result of function write_all_supers(). Since, this variable serves
no purpose, hence the patch removes it and returns the call of the
called function.

Reviewed-by: Zach Brown <zab@redhat.com>
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
---

This patch fixes the following issues of the previous revision-
Change Subject line

 fs/btrfs/disk-io.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 25fb77a..cc95d55 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -3425,10 +3425,7 @@ static int write_all_supers(struct btrfs_root *root, int max_mirrors)
 int write_ctree_super(struct btrfs_trans_handle *trans,
 		      struct btrfs_root *root, int max_mirrors)
 {
-	int ret;
-
-	ret = write_all_supers(root, max_mirrors);
-	return ret;
+	return write_all_supers(root, max_mirrors);
 }
 
 /* Drop a fs root from the radix tree and free it. */
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [OPW kernel] [PATCH v2] btrfs: Remove useless variable in write_ctree_super()
  2013-10-31 11:20 ` [PATCH v2] btrfs: Remove useless variable in write_ctree_super() Rashika Kheria
@ 2013-11-02 16:56   ` Josh Triplett
  0 siblings, 0 replies; 2+ messages in thread
From: Josh Triplett @ 2013-11-02 16:56 UTC (permalink / raw)
  To: Rashika Kheria; +Cc: opw-kernel, linux-btrfs

On Thu, Oct 31, 2013 at 04:50:42PM +0530, Rashika Kheria wrote:
> The function write_ctree_super() in disk-io.c uses variable ret to return
> the result of function write_all_supers(). Since, this variable serves
> no purpose, hence the patch removes it and returns the call of the
> called function.
> 
> Reviewed-by: Zach Brown <zab@redhat.com>
> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>

Reviewed-by: Josh Triplett <josh@joshtriplett.org>

(Also, in general, Reviewed-by should go after Signed-off-by.)

> ---
> 
> This patch fixes the following issues of the previous revision-
> Change Subject line
> 
>  fs/btrfs/disk-io.c |    5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
> index 25fb77a..cc95d55 100644
> --- a/fs/btrfs/disk-io.c
> +++ b/fs/btrfs/disk-io.c
> @@ -3425,10 +3425,7 @@ static int write_all_supers(struct btrfs_root *root, int max_mirrors)
>  int write_ctree_super(struct btrfs_trans_handle *trans,
>  		      struct btrfs_root *root, int max_mirrors)
>  {
> -	int ret;
> -
> -	ret = write_all_supers(root, max_mirrors);
> -	return ret;
> +	return write_all_supers(root, max_mirrors);
>  }
>  
>  /* Drop a fs root from the radix tree and free it. */
> -- 
> 1.7.9.5
> 
> -- 
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-02 16:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20131030215915.GA26170@gmail.com>
2013-10-31 11:20 ` [PATCH v2] btrfs: Remove useless variable in write_ctree_super() Rashika Kheria
2013-11-02 16:56   ` [OPW kernel] " Josh Triplett

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).