]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
slimbus: messaging: Remove redundant code
authorQiang Liu <liuqiang@kylinos.cn>
Fri, 12 Sep 2025 13:12:01 +0000 (14:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Sep 2025 13:47:37 +0000 (15:47 +0200)
Assigning txn->comp to itself has no effect.

Signed-off-by: Qiang Liu <liuqiang@kylinos.cn>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
Link: https://lore.kernel.org/r/20250912131202.303026-3-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/slimbus/messaging.c

index 6f01d944f9c65ad9b0807c89291b8f34c3ac661c..27ca16f00e774e72165b3e7a1738aaf323fb4c5d 100644 (file)
@@ -143,8 +143,6 @@ int slim_do_transfer(struct slim_controller *ctrl, struct slim_msg_txn *txn)
 
                if (!txn->msg->comp)
                        txn->comp = &done;
-               else
-                       txn->comp = txn->comp;
        }
 
        ret = ctrl->xfer_msg(ctrl, txn);