commit 64c24ea9f90adae7db8a695f6c6a97f362605964
Author: Tomohiro Kusumi <[email protected]>
Date: Mon Oct 12 17:23:24 2015 +0900
sys/dev/disk/dm: Simplify list eviction
Change
while (!EMPTY(e)) { e = FIRST(); REMOVE(e); do_something(e); }
to less redundant
while ((e = FIRST())) { REMOVE(e); do_something(e); }
Summary of changes:
sys/dev/disk/dm/dm_pdev.c | 13 ++++++-------
sys/dev/disk/dm/dm_table.c | 7 +++----
2 files changed, 9 insertions(+), 11 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/64c24ea9f90adae7db8a695f6c6a97f362605964
--
DragonFly BSD source repository