Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304293
b: refs/heads/master
c: 2471ec5
h: refs/heads/master
i:
  304291: eccbe2e
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Apr 10, 2012
1 parent 86ad1f7 commit bdd470d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: fc44de0097b6eb05e1feb63d045bdafb8120784d
refs/heads/master: 2471ec5895b2e3eeb55f4386a793123c8a5bf88a
5 changes: 3 additions & 2 deletions trunk/drivers/staging/rts5139/ms.c
Original file line number Diff line number Diff line change
Expand Up @@ -3864,7 +3864,7 @@ static int ms_rw_multi_sector(struct scsi_cmnd *srb, struct rts51x_chip *chip,
log_blk = (u16) (start_sector >> ms_card->block_shift);
start_page = (u8) (start_sector & ms_card->page_off);

for (seg_no = 0; seg_no < sizeof(ms_start_idx) / 2; seg_no++) {
for (seg_no = 0; seg_no < ARRAY_SIZE(ms_start_idx) - 1; seg_no++) {
if (log_blk < ms_start_idx[seg_no + 1])
break;
}
Expand Down Expand Up @@ -4020,7 +4020,8 @@ static int ms_rw_multi_sector(struct scsi_cmnd *srb, struct rts51x_chip *chip,

log_blk++;

for (seg_no = 0; seg_no < sizeof(ms_start_idx) / 2; seg_no++) {
for (seg_no = 0; seg_no < ARRAY_SIZE(ms_start_idx) - 1;
seg_no++) {
if (log_blk < ms_start_idx[seg_no + 1])
break;
}
Expand Down

0 comments on commit bdd470d

Please sign in to comment.