Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185759
b: refs/heads/master
c: f1acb87
h: refs/heads/master
i:
  185757: a2f9433
  185755: b972386
  185751: fafc1bc
  185743: 3962f51
  185727: 3a939f9
v: v3
  • Loading branch information
Roel Kluin authored and Dan Williams committed Mar 1, 2010
1 parent c30eec7 commit c6761b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 67b9124f734b22b30d9adf18c39fe795e2901070
refs/heads/master: f1acb878b6070941e844dfc4ca1b3b9e5a70426c
12 changes: 4 additions & 8 deletions trunk/arch/arm/include/asm/hardware/iop3xx-adma.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,7 @@ static inline int iop_chan_xor_slot_count(size_t len, int src_cnt,
slot_cnt += *slots_per_op;
}

if (len)
slot_cnt += *slots_per_op;
slot_cnt += *slots_per_op;

return slot_cnt;
}
Expand All @@ -389,8 +388,7 @@ static inline int iop_chan_zero_sum_slot_count(size_t len, int src_cnt,
slot_cnt += *slots_per_op;
}

if (len)
slot_cnt += *slots_per_op;
slot_cnt += *slots_per_op;

return slot_cnt;
}
Expand Down Expand Up @@ -737,10 +735,8 @@ iop_desc_set_zero_sum_byte_count(struct iop_adma_desc_slot *desc, u32 len)
i += slots_per_op;
} while (len > IOP_ADMA_ZERO_SUM_MAX_BYTE_COUNT);

if (len) {
iter = iop_hw_desc_slot_idx(hw_desc, i);
iter->byte_count = len;
}
iter = iop_hw_desc_slot_idx(hw_desc, i);
iter->byte_count = len;
}
}

Expand Down

0 comments on commit c6761b3

Please sign in to comment.