staging: most: v4l2-aim: optimize list_for_each_entry_safe
authorChristian Gromm <christian.gromm@microchip.com>
Mon, 6 Jun 2016 13:23:06 +0000 (15:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 17:17:03 +0000 (19:17 +0200)
commitdb5a48d595cfd27ba66625558d982205b46d11fd
tree354734249602dd4cb34b7214de2ba89726689133
parente494df039df0fc73587fda48752bfdbe88a6e7ce
staging: most: v4l2-aim: optimize list_for_each_entry_safe

As the function get_aim_dev() does not delete elements of the list, the
use of macro list_for_each_entry_safe is not necessary.

This patch replaces the macro list_for_each_entry_safe with the macro
list_for_each_entry.

Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-v4l2/video.c