diff options
author | Wolfram Sang <[email protected]> | 2019-08-19 22:48:25 +0200 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2019-08-29 20:38:11 +0200 |
commit | 689f535843ac2633b395cfc494446326d03efab6 (patch) | |
tree | 03f951a3784d58a0333a48f998c4a0539558b1b9 /lib/memory-notifier-error-inject.c | |
parent | a55aa89aab90fae7c815b0551b07be37db359d76 (diff) |
i2c: make i2c_unregister_device() ERR_PTR safe
We are moving towards returning ERR_PTRs when i2c_new_*_device() calls
fail. Make sure its counterpart for unregistering handles ERR_PTRs as
well.
Signed-off-by: Wolfram Sang <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions