Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169132
b: refs/heads/master
c: e657ea1
h: refs/heads/master
v: v3
  • Loading branch information
Randy Dunlap authored and Dominik Brodowski committed Nov 11, 2009
1 parent d8de1f0 commit 48fedcc
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 638bba55fe6440439005f02fcd6b0c1f908d0d11
refs/heads/master: e657ea17ef2d7f364e5c2625157f6cc0584ac7ad
4 changes: 2 additions & 2 deletions trunk/drivers/char/pcmcia/cm4040_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,12 @@ static ssize_t cm4040_read(struct file *filp, char __user *buf,

bytes_to_read = 5 + le32_to_cpu(*(__le32 *)&dev->r_buf[1]);

DEBUGP(6, dev, "BytesToRead=%lu\n", bytes_to_read);
DEBUGP(6, dev, "BytesToRead=%zu\n", bytes_to_read);

min_bytes_to_read = min(count, bytes_to_read + 5);
min_bytes_to_read = min_t(size_t, min_bytes_to_read, READ_WRITE_BUFFER_SIZE);

DEBUGP(6, dev, "Min=%lu\n", min_bytes_to_read);
DEBUGP(6, dev, "Min=%zu\n", min_bytes_to_read);

for (i = 0; i < (min_bytes_to_read-5); i++) {
rc = wait_for_bulk_in_ready(dev);
Expand Down

0 comments on commit 48fedcc

Please sign in to comment.