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
This commit is contained in:
Robert Watson 2006-01-13 23:27:12 +00:00
parent 3208581a15
commit bc03ea7f49

View File

@ -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;
}