Re: [PATCH -next] usbip: tools: Convert list_for_each to entry variant

From: Shuah Khan
Date: Tue Jun 15 2021 - 13:48:54 EST


On 6/15/21 12:58 AM, Zou Wei wrote:
convert list_for_each() to list_for_each_entry() where
applicable.
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>

What is the report? Please include the reports.

Signed-off-by: Zou Wei <zou_wei@xxxxxxxxxx>
---
tools/usb/usbip/libsrc/usbip_host_common.c | 4 +---
tools/usb/usbip/src/usbipd.c | 8 ++------
2 files changed, 3 insertions(+), 9 deletions(-)


Please explain why this change is necessary. Is it a good
idea to explain what happens if you don't make this change?

thanks,
-- Shuah