fs/mount/fs_automount.c: Ignore return values from work_cancel().

This commit is contained in:
Gregory Nutt 2018-06-27 06:30:05 -06:00
parent 99c8d2f801
commit dfd2d218e3

View File

@ -465,15 +465,12 @@ static int automount_interrupt(FAR const struct automount_lower_s *lower,
/* Cancel any pending work. We could get called multiple times if, for
* example there is bounce in the detection mechanism. Work is performed
* the low priority work queue if it is available.
*
* NOTE: The return values are ignored. The error -ENOENT means that
* there is no work to be canceled. No other errors are expected.
*/
ret = work_cancel(LPWORK, &priv->work);
if (ret < 0)
{
/* NOTE: Probably -ENOENT which means only that work is not queued. */
ferr("ERROR: Failed to cancel work: %d\n", ret);
}
(void)work_cancel(LPWORK, &priv->work);
/* Set the media insertion/removal state */