From: David van Moolenbroek Date: Sun, 21 Feb 2016 22:01:11 +0000 (+0000) Subject: VFS: remove unused variable in worker.c X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F3301%2F1;p=minix.git VFS: remove unused variable in worker.c Change-Id: Ife41d292ab50a36c75dc28b682684095654bfcf2 --- diff --git a/minix/servers/vfs/worker.c b/minix/servers/vfs/worker.c index 474049482..5cc35faed 100644 --- a/minix/servers/vfs/worker.c +++ b/minix/servers/vfs/worker.c @@ -298,12 +298,11 @@ int worker_can_start(struct fproc *rfp) * This function is used to serialize invocation of "special" procedures, and * not entirely safe for other cases, as explained in the comments below. */ - int is_pending, is_active, has_normal_work, __unused has_pm_work; + int is_pending, is_active, has_normal_work; is_pending = (rfp->fp_flags & FP_PENDING); is_active = (rfp->fp_worker != NULL); has_normal_work = (rfp->fp_func != NULL); - has_pm_work = (rfp->fp_flags & FP_PM_WORK); /* If there is no work scheduled for the process, we can start work. */ if (!is_pending && !is_active) return TRUE; @@ -369,7 +368,7 @@ void worker_start(struct fproc *rfp, void (*func)(void), message *m_ptr, * message. Optionally, the last spare (deadlock-resolving) thread may be used * to execute the work immediately. */ - int is_pm_work, is_pending, is_active, has_normal_work, __unused has_pm_work; + int is_pm_work, is_pending, is_active, has_normal_work, has_pm_work; assert(rfp != NULL);