Commit 1fbc9f46 authored by Eric Sesterhenn's avatar Eric Sesterhenn Committed by Martin Schwidefsky
Browse files

[S390] list usage cleanup in s390

Trivial cleanup, list_del(); list_add{,_tail}() is equivalent
to list_move{,_tail}(). Semantic patch for coccinelle can be
found at

Signed-off-by: default avatarEric Sesterhenn <>
Signed-off-by: default avatarMartin Schwidefsky <>
parent ab640db0
......@@ -128,8 +128,7 @@ static void __zcrypt_increase_preference(struct zcrypt_device *zdev)
if (l == zdev->list.prev)
/* Move zdev behind l */
list_add(&zdev->list, l);
list_move(&zdev->list, l);
......@@ -157,8 +156,7 @@ static void __zcrypt_decrease_preference(struct zcrypt_device *zdev)
if (l == zdev->
/* Move zdev before l */
list_add_tail(&zdev->list, l);
list_move_tail(&zdev->list, l);
static void zcrypt_device_release(struct kref *kref)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment