mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
fs/mount/fs_automount.c: Ignore return values from work_cancel().
This commit is contained in:
@@ -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
|
/* Cancel any pending work. We could get called multiple times if, for
|
||||||
* example there is bounce in the detection mechanism. Work is performed
|
* example there is bounce in the detection mechanism. Work is performed
|
||||||
* the low priority work queue if it is available.
|
* 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);
|
(void)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);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Set the media insertion/removal state */
|
/* Set the media insertion/removal state */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user