git » libfilo » commit a59b89c

Avoid useless return in plockf().

author Alberto Bertogli
2005-04-24 00:05:37 UTC
committer Alberto Bertogli
2005-04-24 00:05:37 UTC
parent 3343ca2ff0d3f1f73155f16a7d378d4a389a5649

Avoid useless return in plockf().

libfilo.c +1 -4

diff --git a/libfilo.c b/libfilo.c
index f1d9347..67c62cf 100644
--- a/libfilo.c
+++ b/libfilo.c
@@ -493,9 +493,6 @@ int filo_plockf(filock_t *fl, int cmd, off_t start, off_t len)
 
 	if (rv == 0)
 		return -1;
-	else
-		return 0;
-
-	return -1;
+	return 0;
 }