Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4234
b: refs/heads/master
c: 88de0be
h: refs/heads/master
v: v3
  • Loading branch information
Milton Miller authored and Linus Torvalds committed Jul 8, 2005
1 parent 4a3ca6f commit c26e489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 70b234a40107596a713e9981c643f2717e31463f
refs/heads/master: 88de0be0c7335650326a1236bf6ca1ed265c0a1c
8 changes: 3 additions & 5 deletions trunk/drivers/char/hvsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,13 @@ static void dump_packet(uint8_t *packet)
dump_hex(packet, header->len);
}

/* can't use hvc_get_chars because that strips CRs */
static int hvsi_read(struct hvsi_struct *hp, char *buf, int count)
{
unsigned long got;

if (plpar_hcall(H_GET_TERM_CHAR, hp->vtermno, 0, 0, 0, &got,
(unsigned long *)buf, (unsigned long *)buf+1) == H_Success)
return got;
return 0;
got = hvc_get_chars(hp->vtermno, buf, count);

return got;
}

static void hvsi_recv_control(struct hvsi_struct *hp, uint8_t *packet,
Expand Down

0 comments on commit c26e489

Please sign in to comment.