mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
09fd1e0d14
Unify the code paths for adding to an empty list and to a list with elements by keeping a "pos" list_head element that indicates where to insert. Initialize "pos" with the list head itself in case list_for_each_entry() doesn't iterate over any element. Note that list_for_each_safe() isn't needed because no element is removed from the list while iterating. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ocelot_devlink.c | ||
ocelot_fdma.c | ||
ocelot_fdma.h | ||
ocelot_flower.c | ||
ocelot_io.c | ||
ocelot_mrp.c | ||
ocelot_net.c | ||
ocelot_police.c | ||
ocelot_police.h | ||
ocelot_ptp.c | ||
ocelot_qs.h | ||
ocelot_rew.h | ||
ocelot_vcap.c | ||
ocelot_vcap.h | ||
ocelot_vsc7514.c | ||
ocelot.c | ||
ocelot.h | ||
vsc7514_regs.c |