linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1 linux-next] ceph: return error code directly.
@ 2014-10-08 20:27 Fabian Frederick
  0 siblings, 0 replies; only message in thread
From: Fabian Frederick @ 2014-10-08 20:27 UTC (permalink / raw)
  To: linux-kernel; +Cc: Fabian Frederick, Sage Weil, ceph-devel

Testing err before returning value is not needed.

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

diff --git a/fs/ceph/ioctl.c b/fs/ceph/ioctl.c
index a822a6e..b2d777a 100644
--- a/fs/ceph/ioctl.c
+++ b/fs/ceph/ioctl.c
@@ -54,10 +54,7 @@ static long __validate_layout(struct ceph_mds_client *mdsc,
 			break;
 		}
 	mutex_unlock(&mdsc->mutex);
-	if (err)
-		return err;
-
-	return 0;
+	return err;
 }
 
 static long ceph_ioctl_set_layout(struct file *file, void __user *arg)
-- 
1.9.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-08 20:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-08 20:27 [PATCH 1/1 linux-next] ceph: return error code directly Fabian Frederick

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