From 180563217f2579029424c9b79abe7bb2fcfeb51b Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Wed, 6 Nov 2013 17:20:34 +0100 Subject: mach-defpager: remove unused variables Found using the Clang Static Analyzer. * mach-defpager/default_pager.c (seqnos_memory_object_terminate): Remove unused variables request_refs and name_refs. --- mach-defpager/default_pager.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'mach-defpager') diff --git a/mach-defpager/default_pager.c b/mach-defpager/default_pager.c index 9dad4c21..a913d117 100644 --- a/mach-defpager/default_pager.c +++ b/mach-defpager/default_pager.c @@ -2507,7 +2507,6 @@ seqnos_memory_object_terminate(pager, seqno, pager_request, pager_name) mach_port_t pager_name; { register default_pager_t ds; - mach_port_urefs_t request_refs, name_refs; kern_return_t kr; static char here[] = "%sterminate"; @@ -2546,11 +2545,9 @@ ddprintf ("seqnos_memory_object_terminate <%p>: pager_port_lock: <%p>[s:%d,r:%d, if (ds->external) pager_request = ds->pager_request; ds->pager_request = MACH_PORT_NULL; - request_refs = ds->request_refs; ds->request_refs = 0; assert(ds->pager_name == pager_name); ds->pager_name = MACH_PORT_NULL; - name_refs = ds->name_refs; ds->name_refs = 0; ddprintf ("seqnos_memory_object_terminate <%p>: pager_port_unlock: <%p>[s:%d,r:%d,w:%d,l:%d]\n", &kr, ds, ds->seqno, ds->readers, ds->writers, ds->lock.held); -- cgit v1.2.3