misc: vexpress: Use PTR_ERR_OR_ZERO()
authorVasyl Gomonovych <gomonovych@gmail.com>
Tue, 28 Nov 2017 15:20:43 +0000 (16:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Dec 2017 17:45:31 +0000 (18:45 +0100)
commiteecf4f9dd940fc90b38693ec6cde9badf0bea56a
tree15265c0fafff4e7a316d4af42e2db38f8439544d
parentbaa8b941cb52cd85df8b86b4cf8be5606606f5d9
misc: vexpress: Use PTR_ERR_OR_ZERO()

Fix ptr_ret.cocci warnings:
drivers/misc/vexpress-syscfg.c:273:1-3: 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>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vexpress-syscfg.c