Avoid unnecessary cast in bufq_disksort_init().

This commit is contained in:
cbiere 2007-02-01 00:36:37 +00:00
parent 858097f9a1
commit 89165435c8

View File

@ -1,4 +1,4 @@
/* $NetBSD: bufq_disksort.c,v 1.6 2005/12/11 12:24:29 christos Exp $ */
/* $NetBSD: bufq_disksort.c,v 1.7 2007/02/01 00:36:37 cbiere Exp $ */
/* NetBSD: subr_disk.c,v 1.61 2004/09/25 03:30:44 thorpej Exp */
/*-
@ -75,7 +75,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: bufq_disksort.c,v 1.6 2005/12/11 12:24:29 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: bufq_disksort.c,v 1.7 2007/02/01 00:36:37 cbiere Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -203,10 +203,9 @@ bufq_disksort_init(struct bufq_state *bufq)
{
struct bufq_disksort *disksort;
disksort = malloc(sizeof(*disksort), M_DEVBUF, M_ZERO);
bufq->bq_private = disksort;
bufq->bq_get = bufq_disksort_get;
bufq->bq_put = bufq_disksort_put;
bufq->bq_private = malloc(sizeof(struct bufq_disksort),
M_DEVBUF, M_ZERO);
disksort = (struct bufq_disksort *)bufq->bq_private;
TAILQ_INIT(&disksort->bq_head);
}