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>
This commit is contained in:
Stefan Richter 2006-11-02 21:16:08 +01:00
parent 138c8af864
commit cd641f68d6
1 changed files with 1 additions and 2 deletions

View File

@ -619,9 +619,8 @@ static void sbp2util_mark_command_completed(
struct sbp2_lu *lu, struct sbp2_lu *lu,
struct sbp2_command_info *cmd) struct sbp2_command_info *cmd)
{ {
list_del(&cmd->list);
sbp2util_free_command_dma(cmd); sbp2util_free_command_dma(cmd);
list_add_tail(&cmd->list, &lu->cmd_orb_completed); list_move_tail(&cmd->list, &lu->cmd_orb_completed);
} }
/* /*