Re: [PATCH] iio: mma8452: Add missed iio_device_unregister() call in mma8452_probe()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux