diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2006-11-02 15:16:08 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2006-12-07 17:03:38 -0500 |
commit | cd641f68d628e5c44350447d4b8d661991419e60 (patch) | |
tree | 55b31092ac650270ca772086fb27a9feab291923 /drivers | |
parent | 138c8af8649ceea38aa52323b9326c10068bb597 (diff) |
ieee1394: sbp2: use list_move_tail()
It's OK to reorder list_del() and sbp2util_free_command_dma() here.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ieee1394/sbp2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c index a7fb588d3ca7..2b6d9a0fa737 100644 --- a/drivers/ieee1394/sbp2.c +++ b/drivers/ieee1394/sbp2.c | |||
@@ -619,9 +619,8 @@ static void sbp2util_mark_command_completed( | |||
619 | struct sbp2_lu *lu, | 619 | struct sbp2_lu *lu, |
620 | struct sbp2_command_info *cmd) | 620 | struct sbp2_command_info *cmd) |
621 | { | 621 | { |
622 | list_del(&cmd->list); | ||
623 | sbp2util_free_command_dma(cmd); | 622 | sbp2util_free_command_dma(cmd); |
624 | list_add_tail(&cmd->list, &lu->cmd_orb_completed); | 623 | list_move_tail(&cmd->list, &lu->cmd_orb_completed); |
625 | } | 624 | } |
626 | 625 | ||
627 | /* | 626 | /* |