]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: Use PTR_ERR_OR_ZERO()
authorVasyl Gomonovych <gomonovych@gmail.com>
Tue, 28 Nov 2017 21:40:27 +0000 (22:40 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 30 Jan 2018 23:47:34 +0000 (01:47 +0200)
commit3d157a4da7a1ca2702f29bc8060aea9ea84f5db4
treed4f8b8e74b031b2bbe3de1bb1a7769d22c4419be
parent2a68fa822b8c96a1b345b5f0f192cb534bdb52c7
firmware: Use PTR_ERR_OR_ZERO()

Fix ptr_ret.cocci warnings:
drivers/firmware/efi/efi.c:610:8-14: 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: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
drivers/firmware/qemu_fw_cfg.c