git: sys/dev/disk/dm: Simplify list eviction
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Wed Oct 14 12:35:49 PDT 2015
commit 64c24ea9f90adae7db8a695f6c6a97f362605964
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
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
More information about the Commits
mailing list