From bc03ea7f4989cf789fbdfee84df76e092e89be5e Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Fri, 13 Jan 2006 23:27:12 +0000 Subject: When calling bioq_first() to see if a queue is empty in bioq_disksort(), don't save the return value as we won't use it. Noticed by: Coverity Prevent analysis tool MFC after: 3 days --- sys/kern/subr_disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/subr_disk.c') diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 224882276336..44e4f566d8dc 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -153,7 +153,7 @@ bioq_disksort(bioq, bp) /* * If the queue is empty then it's easy. */ - if ((bq = bioq_first(bioq)) == NULL) { + if (bioq_first(bioq) == NULL) { bioq_insert_tail(bioq, bp); return; } -- cgit v1.2.3