All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH 1/1 linux-next] GFS2: directly return gfs2_dir_check()
@ 2014-10-09 20:49 ` Fabian Frederick
  0 siblings, 0 replies; 4+ messages in thread
From: Fabian Frederick @ 2014-10-09 20:49 UTC (permalink / raw)
  To: cluster-devel.redhat.com

No need to store gfs2_dir_check result and test it before returning.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 fs/gfs2/inode.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index c4ed823..b41b5c7 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -1045,11 +1045,7 @@ static int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name,
 	if (error)
 		return error;
 
-	error = gfs2_dir_check(&dip->i_inode, name, ip);
-	if (error)
-		return error;
-
-	return 0;
+	return gfs2_dir_check(&dip->i_inode, name, ip);
 }
 
 /**
-- 
1.9.3



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

* [PATCH 1/1 linux-next] GFS2: directly return gfs2_dir_check()
@ 2014-10-09 20:49 ` Fabian Frederick
  0 siblings, 0 replies; 4+ messages in thread
From: Fabian Frederick @ 2014-10-09 20:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: Fabian Frederick, Steven Whitehouse, cluster-devel

No need to store gfs2_dir_check result and test it before returning.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 fs/gfs2/inode.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index c4ed823..b41b5c7 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -1045,11 +1045,7 @@ static int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name,
 	if (error)
 		return error;
 
-	error = gfs2_dir_check(&dip->i_inode, name, ip);
-	if (error)
-		return error;
-
-	return 0;
+	return gfs2_dir_check(&dip->i_inode, name, ip);
 }
 
 /**
-- 
1.9.3


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

* [Cluster-devel] [PATCH 1/1 linux-next] GFS2: directly return gfs2_dir_check()
  2014-10-09 20:49 ` Fabian Frederick
@ 2014-10-10 13:21   ` Steven Whitehouse
  -1 siblings, 0 replies; 4+ messages in thread
From: Steven Whitehouse @ 2014-10-10 13:21 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hi,

On 09/10/14 21:49, Fabian Frederick wrote:
> No need to store gfs2_dir_check result and test it before returning.
>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
Since I've already sent a pull request for this merge window, and this 
is not urgent, I'll keep this one and use it to start off the new tree 
in due course, once the merge window has closed. Thanks,

Steve,

> ---
>   fs/gfs2/inode.c | 6 +-----
>   1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
> index c4ed823..b41b5c7 100644
> --- a/fs/gfs2/inode.c
> +++ b/fs/gfs2/inode.c
> @@ -1045,11 +1045,7 @@ static int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name,
>   	if (error)
>   		return error;
>   
> -	error = gfs2_dir_check(&dip->i_inode, name, ip);
> -	if (error)
> -		return error;
> -
> -	return 0;
> +	return gfs2_dir_check(&dip->i_inode, name, ip);
>   }
>   
>   /**



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

* Re: [PATCH 1/1 linux-next] GFS2: directly return gfs2_dir_check()
@ 2014-10-10 13:21   ` Steven Whitehouse
  0 siblings, 0 replies; 4+ messages in thread
From: Steven Whitehouse @ 2014-10-10 13:21 UTC (permalink / raw)
  To: Fabian Frederick, linux-kernel; +Cc: cluster-devel

Hi,

On 09/10/14 21:49, Fabian Frederick wrote:
> No need to store gfs2_dir_check result and test it before returning.
>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
Since I've already sent a pull request for this merge window, and this 
is not urgent, I'll keep this one and use it to start off the new tree 
in due course, once the merge window has closed. Thanks,

Steve,

> ---
>   fs/gfs2/inode.c | 6 +-----
>   1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
> index c4ed823..b41b5c7 100644
> --- a/fs/gfs2/inode.c
> +++ b/fs/gfs2/inode.c
> @@ -1045,11 +1045,7 @@ static int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name,
>   	if (error)
>   		return error;
>   
> -	error = gfs2_dir_check(&dip->i_inode, name, ip);
> -	if (error)
> -		return error;
> -
> -	return 0;
> +	return gfs2_dir_check(&dip->i_inode, name, ip);
>   }
>   
>   /**


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

end of thread, other threads:[~2014-10-10 13:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-09 20:49 [Cluster-devel] [PATCH 1/1 linux-next] GFS2: directly return gfs2_dir_check() Fabian Frederick
2014-10-09 20:49 ` Fabian Frederick
2014-10-10 13:21 ` [Cluster-devel] " Steven Whitehouse
2014-10-10 13:21   ` Steven Whitehouse

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.