Skip to content
Commit 0a9e63aa authored by Vasyl Gomonovych's avatar Vasyl Gomonovych Committed by Michael S. Tsirkin
Browse files

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: default avatarVasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarGabriel Somlo <somlo@cmu.edu>
Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
parent c2c9f9bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment