All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xiao Yang <yangx.jy@cn.fujitsu.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/3] safe_macros: remove unused code in xattr related functions
Date: Thu, 2 Mar 2017 18:37:34 +0800	[thread overview]
Message-ID: <1488451056-24535-1-git-send-email-yangx.jy@cn.fujitsu.com> (raw)

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
 lib/safe_macros.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/safe_macros.c b/lib/safe_macros.c
index 42e7d98..6476246 100644
--- a/lib/safe_macros.c
+++ b/lib/safe_macros.c
@@ -803,7 +803,6 @@ int safe_setxattr(const char *file, const int lineno, const char *path,
 			tst_brkm(TCONF, NULL,
 				 "%s:%d: no xattr support in fs or mounted "
 				 "without user_xattr option", file, lineno);
-			return rval;
 		}
 
 		tst_brkm(TBROK | TERRNO, NULL, "%s:%d: setxattr() failed",
@@ -825,7 +824,6 @@ int safe_lsetxattr(const char *file, const int lineno, const char *path,
 			tst_brkm(TCONF, NULL,
 				 "%s:%d: no xattr support in fs or mounted "
 				 "without user_xattr option", file, lineno);
-			return rval;
 		}
 
 		tst_brkm(TBROK | TERRNO, NULL, "%s:%d: lsetxattr() failed",
@@ -847,7 +845,6 @@ int safe_fsetxattr(const char *file, const int lineno, int fd, const char *name,
 			tst_brkm(TCONF, NULL,
 				 "%s:%d: no xattr support in fs or mounted "
 				 "without user_xattr option", file, lineno);
-			return rval;
 		}
 
 		tst_brkm(TBROK | TERRNO, NULL, "%s:%d: fsetxattr() failed",
-- 
1.8.3.1




             reply	other threads:[~2017-03-02 10:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-02 10:37 Xiao Yang [this message]
2017-03-02 10:37 ` [LTP] [PATCH 2/3] safe_macros: add safe_removexattr() Xiao Yang
2017-03-02 10:37 ` [LTP] [PATCH 3/3] syscalls/getxattr04.c: Add new regression test Xiao Yang
2017-03-02 16:23   ` Cyril Hrubis
2017-03-03  1:21     ` [LTP] [PATCH v2 3/3] syscalls/getxattr04.c: add " Xiao Yang
2017-03-03  2:14       ` Xiao Yang
2017-03-03  1:34     ` [LTP] [PATCH 3/3] syscalls/getxattr04.c: Add " Xiao Yang
2017-03-03  2:18     ` [LTP] [PATCH v3 3/3] syscalls/getxattr04.c: add " Xiao Yang
2017-03-03  9:57       ` Cyril Hrubis
2017-03-06  8:50         ` [LTP] [PATCH v4 " Xiao Yang
2017-03-06  9:58           ` Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1488451056-24535-1-git-send-email-yangx.jy@cn.fujitsu.com \
    --to=yangx.jy@cn.fujitsu.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.