commit | 06d6199f82d3c5c2a61cd41b8e7be0f83ec156b1 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Tue Jun 28 00:51:13 2011 +0400 |
committer | Kir Kolyshkin <kir@openvz.org> | Wed Jun 29 00:41:49 2011 +0400 |
tree | b0e3c51da391b5f35a904a13ede8cc9f066f8776 | |
parent | 39396031bc4bd2771354cf6e98542278e2bbfba3 [diff] |
src/lib/*.c: avoid list_head_init() if unnecessary Spotted this in a few places: if a function returns (or errors out) before using a local list, there's no need to init that list. In such places, move list_init() to just before using the list, avoiding the unnecessary initialization. Should not have any visible effect whatsoever, except for 0.002ns improvements in a few paths :) Signed-off-by: Kir Kolyshkin <kir@openvz.org>