btrfs: Use PTR_ERR_OR_ZERO
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 17 Feb 2014 03:43:57 +0000 (09:13 +0530)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:16:51 +0000 (15:16 -0400)
commit886322e8e787604731e782d36c34327a8970bda9
tree216d577ab5ec3cb64a6208e6471c50df6677fb77
parentbf0d1f441d1679136c25e6141dd7e66cc7a14218
btrfs: Use PTR_ERR_OR_ZERO

PTR_RET is deprecated. Use PTR_ERR_OR_ZERO instead. While at it
also include missing err.h header.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/root-tree.c