usbip: vudc: Make use of the helper macro LIST_HEAD()
authorCai Huoqing <cai.huoqing@linux.dev>
Fri, 11 Feb 2022 01:28:07 +0000 (09:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Feb 2022 11:49:38 +0000 (12:49 +0100)
commit4378e427f70577da86b41bb3380dbe237b6aa4d5
tree0ea2afc8063393919ac604492c9c2902063b885e
parent18819ad23828ff0e83e3aa53230b586659f69e79
usbip: vudc: Make use of the helper macro LIST_HEAD()

Replace "struct list_head head = LIST_HEAD_INIT(head)" with
"LIST_HEAD(head)" to simplify the code.

LIST_HEAD() helps to clean up the code "struct list_head vudc_devices =",
only to care about the variable 'vudc_devices'.

Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev>
Link: https://lore.kernel.org/r/20220211012807.7415-1-cai.huoqing@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vudc_main.c