usbmon: Use list_for_each_entry() helper
authorJinjie Ruan <ruanjinjie@huawei.com>
Wed, 30 Aug 2023 08:56:58 +0000 (16:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Oct 2023 14:19:01 +0000 (16:19 +0200)
commit80920e21269265fd6fc5abf825af77ea2d100c8a
tree488f8c2d98edc1709e0865f85d1a1fb3be51066e
parenteb9c996f0110de117bf4d4e2ba837790a17d9ed2
usbmon: Use list_for_each_entry() helper

Convert list_for_each() to list_for_each_entry() so that the p/pos
list_head pointer and list_entry() call are no longer needed, which
can reduce a few lines of code. No functional changed.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230830085658.527752-1-ruanjinjie@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/mon/mon_main.c