diff options
Diffstat (limited to 'sys/dev/pci/if_sk.c')
-rw-r--r-- | sys/dev/pci/if_sk.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c index 482fb39c69c..8dfbbbd5370 100644 --- a/sys/dev/pci/if_sk.c +++ b/sys/dev/pci/if_sk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sk.c,v 1.127 2006/09/26 19:37:28 brad Exp $ */ +/* $OpenBSD: if_sk.c,v 1.128 2006/09/27 02:27:04 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -772,11 +772,7 @@ sk_alloc_jumbo_mem(struct sk_if_softc *sc_if) goto out; } entry->slot = i; - if (i) - LIST_INSERT_HEAD(&sc_if->sk_jfree_listhead, - entry, jpool_entries); - else - LIST_INSERT_HEAD(&sc_if->sk_jinuse_listhead, + LIST_INSERT_HEAD(&sc_if->sk_jfree_listhead, entry, jpool_entries); } out: @@ -836,7 +832,6 @@ sk_jfree(caddr_t buf, u_int size, void *arg) panic("sk_jfree: can't find softc pointer!"); /* calculate the slot this buffer belongs to */ - i = ((vaddr_t)buf - (vaddr_t)sc->sk_cdata.sk_jumbo_buf) / SK_JLEN; |