sys/dev/disk/dm: Simplify list eviction
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 12 Oct 2015 08:23:24 +0000 (17:23 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Wed, 14 Oct 2015 19:06:18 +0000 (04:06 +0900)
commit64c24ea9f90adae7db8a695f6c6a97f362605964
tree6a5f7f64047bb9332560b17b7fa686fc5a824749
parentb9b46b3ad77b2eb8f97653da8dfbf1ced9115547
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); }
sys/dev/disk/dm/dm_pdev.c
sys/dev/disk/dm/dm_table.c