diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-05-09 12:08:28 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-05-30 18:03:38 +0200 |
commit | a9face899413f468460219c79503c091c4d362cb (patch) | |
tree | 4f31569d885b13ba13fc667990a077e93f73801f /drivers/acpi/cppc_acpi.c | |
parent | b941820ec938d175fd6e4e7ba5b4a6ca9d092afd (diff) |
usb: typec: ucsi: acpi: fix a NULL vs IS_ERR() check in probe
The devm_memremap() function never returns NULL. It returns error
pointers.
Fixes: cdc3d2abf438 ("usb: typec: ucsi: acpi: Map the mailbox with memremap()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions