ovl: Use PTR_ERR_OR_ZERO()
authorVasyl Gomonovych <gomonovych@gmail.com>
Mon, 27 Nov 2017 23:09:23 +0000 (00:09 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 11 Dec 2017 10:28:11 +0000 (11:28 +0100)
commit7879cb43f9a75710af439c6bd81c94de1aa3d740
tree29b51128ca1b9ac8c2dc896ed61aed87fcad0abf
parente8d4bfe3a71537284a90561f77c85dea6c154369
ovl: Use PTR_ERR_OR_ZERO()

Fix ptr_ret.cocci warnings:
fs/overlayfs/overlayfs.h:179:11-17: WARNING: PTR_ERR_OR_ZERO can be used

Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Generated by: scripts/coccinelle/api/ptr_ret.cocci

Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/overlayfs.h