Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
firmware: google memconsole: Fix return value check in platform_memco…
…nsole_init() In case of error, the function platform_device_register_simple() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: d384d6f ("firmware: google memconsole: Add coreboot support") Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information