cifs: use LIST_HEAD() and list_move() to simplify code
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 17 Oct 2022 08:55:08 +0000 (16:55 +0800)
committerSteve French <stfrench@microsoft.com>
Tue, 18 Oct 2022 16:33:43 +0000 (11:33 -0500)
commitd32f211adb6aa179c00ee1c251315d1ef1433a38
treebfa811d75d68db6ab0cade623147ce606e9c8dfe
parent10269f13257d4eb6061d09ccce61666316df9838
cifs: use LIST_HEAD() and list_move() to simplify code

list_head can be initialized automatically with LIST_HEAD()
instead of calling INIT_LIST_HEAD().

Using list_move() instead of list_del() and list_add().

Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cached_dir.c