generic/486: Get rid of the redundant error=%d printing
authorXiao Yang <yangx.jy@cn.fujitsu.com>
Thu, 17 May 2018 03:32:27 +0000 (11:32 +0800)
committerEryu Guan <guaneryu@gmail.com>
Fri, 18 May 2018 06:31:20 +0000 (14:31 +0800)
commit287b2e05b52789299dfddf56aec796e92de366e1
tree035e3511fbb2fee885489746ff2ea4d6d1da7613
parent3d112df8bdc313308f3788cf28e1574d4fb15d4c
generic/486: Get rid of the redundant error=%d printing

1) Without the fix, perror() can indicate the actual error(ENODATA).
2) After calling perror() and redirecting the output of perror()
   to a file, errno seems to be set to EINVAL unexpectedly.
   See the following mail for detailed info:
   https://www.spinics.net/lists/fstests/msg09675.html

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
src/attr_replace_test.c