diff options
author | Peng Wu <[email protected]> | 2022-11-15 09:11:38 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-11-23 20:03:14 +0100 |
commit | fa1ba41c17cd786925720bc1a9554d6c6624923d (patch) | |
tree | 3847d59c205d9615338d38ee87ea165e20feb9be /lib/mpi/mpi-sub-ui.c | |
parent | ab760791c0cfbb1d7a668f46a135264f56c8f018 (diff) |
firmware: google: fix a NULL vs IS_ERR() check in cbmem_entry_probe()
The devm_memremap() function returns error pointers on error,
it doesn't return NULL.
Fixes: 19d54020883c ("firmware: google: Implement cbmem in sysfs driver")
Signed-off-by: Peng Wu <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Reviewed-by: Jack Rosenthal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions