btrfs-progs: Fix the return value when executing 'btrfs prop get' on an uncompressed...
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 15 Apr 2014 09:22:24 +0000 (17:22 +0800)
committerDavid Sterba <dsterba@suse.cz>
Tue, 22 Apr 2014 12:35:15 +0000 (14:35 +0200)
commit802ed8c3520897369e65c56b204babbc28ebed40
tree7b8d91238c95b9cabfa358fa1a0653d716e8850f
parentccd14cbf62026fd84113bcf886732fcc3391cb5b
btrfs-progs: Fix the return value when executing 'btrfs prop get' on an uncompressed file

When executing 'btrfs prop get' on a file which is not compressed, return
value will always be 50 since prop_compress() return -ENOATTR.

But the codes have already check the errno to avoid unnecessary error
message, so the return value should also set to 0.

Signed-off-by: Qu Wenruo <quwenro@cn.fujitsu.com>
Reviewed-by: Filipe Manana <fdmanana@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
props.c