Non-operational change, fix compiler warning.

Reviewed by:  mckusick
This commit is contained in:
Matthew Dillon 2000-01-14 04:39:28 +00:00
parent 9bfb3cb2c7
commit 173cce7c8e
2 changed files with 2 additions and 2 deletions

View File

@ -640,7 +640,7 @@ softdep_move_dependencies(oldbp, newbp)
panic("softdep_move_dependencies: need merge code");
wktail = 0;
ACQUIRE_LOCK(&lk);
while (wk = LIST_FIRST(&oldbp->b_dep)) {
while ((wk = LIST_FIRST(&oldbp->b_dep)) != NULL) {
LIST_REMOVE(wk, wk_list);
if (wktail == 0)
LIST_INSERT_HEAD(&newbp->b_dep, wk, wk_list);

View File

@ -640,7 +640,7 @@ softdep_move_dependencies(oldbp, newbp)
panic("softdep_move_dependencies: need merge code");
wktail = 0;
ACQUIRE_LOCK(&lk);
while (wk = LIST_FIRST(&oldbp->b_dep)) {
while ((wk = LIST_FIRST(&oldbp->b_dep)) != NULL) {
LIST_REMOVE(wk, wk_list);
if (wktail == 0)
LIST_INSERT_HEAD(&newbp->b_dep, wk, wk_list);