Skip to content

Commit

Permalink
g/c a write-only variable
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed May 22, 2014
1 parent a4f3d8c commit b51e253
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sys/uvm/uvm_anon.c
@@ -1,4 +1,4 @@
/* $NetBSD: uvm_anon.c,v 1.62.2.4 2014/05/22 11:41:19 yamt Exp $ */
/* $NetBSD: uvm_anon.c,v 1.62.2.5 2014/05/22 19:12:52 yamt Exp $ */

/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
Expand Down Expand Up @@ -30,7 +30,7 @@
*/

#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uvm_anon.c,v 1.62.2.4 2014/05/22 11:41:19 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: uvm_anon.c,v 1.62.2.5 2014/05/22 19:12:52 yamt Exp $");

#include "opt_uvmhist.h"

Expand Down Expand Up @@ -296,7 +296,6 @@ bool
uvm_anon_pagein(struct vm_amap *amap, struct vm_anon *anon)
{
struct vm_page *pg;
struct uvm_object *uobj;

KASSERT(mutex_owned(anon->an_lock));
KASSERT(anon->an_lock == amap->am_lock);
Expand Down Expand Up @@ -326,7 +325,6 @@ uvm_anon_pagein(struct vm_amap *amap, struct vm_anon *anon)
*/

pg = anon->an_page;
uobj = pg->uobject;
if (anon->an_swslot > 0) {
uvm_swap_free(anon->an_swslot, 1);
}
Expand Down

0 comments on commit b51e253

Please sign in to comment.