Skip to content

Commit 5c6794f

Browse files
Qiang Liugregkh
authored andcommitted
slimbus: messaging: Remove redundant code
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>
1 parent 7cbba32 commit 5c6794f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/slimbus/messaging.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,6 @@ int slim_do_transfer(struct slim_controller *ctrl, struct slim_msg_txn *txn)
143143

144144
if (!txn->msg->comp)
145145
txn->comp = &done;
146-
else
147-
txn->comp = txn->comp;
148146
}
149147

150148
ret = ctrl->xfer_msg(ctrl, txn);

0 commit comments

Comments
 (0)