Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124602
b: refs/heads/master
c: 237abac
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and James Bottomley committed Dec 29, 2008
1 parent 5685479 commit 506179a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 973b73605cc2ac1f51457809c5f1f1f8ab760c47
refs/heads/master: 237abac6ff093aa5cb64faf6f632c479e00a67be
6 changes: 2 additions & 4 deletions trunk/drivers/scsi/esp_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ static void esp_msgin_sdtr(struct esp *esp, struct esp_target_data *tp)
offset = 0;

if (offset) {
int rounded_up, one_clock;
int one_clock;

if (period > esp->max_period) {
period = offset = 0;
Expand All @@ -1463,9 +1463,7 @@ static void esp_msgin_sdtr(struct esp *esp, struct esp_target_data *tp)
goto do_reject;

one_clock = esp->ccycle / 1000;
rounded_up = (period << 2);
rounded_up = (rounded_up + one_clock - 1) / one_clock;
stp = rounded_up;
stp = DIV_ROUND_UP(period << 2, one_clock);
if (stp && esp->rev >= FAS236) {
if (stp >= 50)
stp--;
Expand Down

0 comments on commit 506179a

Please sign in to comment.