diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-06 17:20:34 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-09 19:43:29 +0100 |
commit | 180563217f2579029424c9b79abe7bb2fcfeb51b (patch) | |
tree | c9321461d875fd1baefca9705e90a5109335f8ed /mach-defpager | |
parent | b31164eeecf3f798f75a71577ae365daf8211946 (diff) |
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.
Diffstat (limited to 'mach-defpager')
-rw-r--r-- | mach-defpager/default_pager.c | 3 |
1 files changed, 0 insertions, 3 deletions
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); |