aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-sbp2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firewire/fw-sbp2.c')
-rw-r--r--drivers/firewire/fw-sbp2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c
index 54cad3a5dfb8..bb133398feec 100644
--- a/drivers/firewire/fw-sbp2.c
+++ b/drivers/firewire/fw-sbp2.c
@@ -348,6 +348,9 @@ static void sbp2_cancel_orbs(struct fw_unit *unit)
348 spin_unlock_irqrestore(&device->card->lock, flags); 348 spin_unlock_irqrestore(&device->card->lock, flags);
349 349
350 list_for_each_entry_safe(orb, next, &list, link) { 350 list_for_each_entry_safe(orb, next, &list, link) {
351 if (fw_cancel_transaction(device->card, &orb->t) == 0)
352 continue;
353
351 orb->rcode = RCODE_CANCELLED; 354 orb->rcode = RCODE_CANCELLED;
352 orb->callback(orb, NULL); 355 orb->callback(orb, NULL);
353 } 356 }