Messages in this thread | | | Subject | Re: [PATCH] iio: mma8452: Add missed iio_device_unregister() call in mma8452_probe() | From | Markus Elfring <> | Date | Wed, 27 May 2020 21:55:25 +0200 |
| |
> mma8452_probe() calls iio_device_register() but misses to call > iio_device_unregister() when probe fails. > Add the missed call in error handler to fix it.
How do you think about a wording variant like the following?
Change description: The function “iio_device_register” was called here. But the function “iio_device_unregister” was not called after a call of the function “mma8452_set_freefall_mode” failed. Thus add the missed function call for one error case.
Would you like to add the tag “Fixes”?
Regards, Markus
| |