lkml.org 
[lkml]   [2020]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] iio: mma8452: Add missed iio_device_unregister() call in mma8452_probe()
From
Date
> 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

\
 
 \ /
  Last update: 2020-05-27 21:56    [W:0.037 / U:4.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site