Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354025
b: refs/heads/master
c: 47181ea
h: refs/heads/master
i:
  354023: d14434e
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jan 18, 2013
1 parent 1d35039 commit 41a25ed
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 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: f8f76e909b8cc6696071e69cf4be07714c95bcb4
refs/heads/master: 47181eab71a81a919bf74eee570d6db59c6cf298
9 changes: 1 addition & 8 deletions trunk/drivers/staging/comedi/comedi_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,6 @@ unsigned int comedi_buf_write_alloc(struct comedi_async *async,
}
EXPORT_SYMBOL(comedi_buf_write_alloc);

/* allocates nothing unless it can completely fulfill the request */
unsigned int comedi_buf_write_alloc_strict(struct comedi_async *async,
unsigned int nbytes)
{
return __comedi_buf_write_alloc(async, nbytes, 1);
}

/* munging is applied to data by core as it passes between user
* and kernel space */
static unsigned int comedi_buf_munge(struct comedi_async *async,
Expand Down Expand Up @@ -319,7 +312,7 @@ EXPORT_SYMBOL(comedi_buf_read_free);

int comedi_buf_put(struct comedi_async *async, short x)
{
unsigned int n = comedi_buf_write_alloc_strict(async, sizeof(short));
unsigned int n = __comedi_buf_write_alloc(async, sizeof(short), 1);

if (n < sizeof(short)) {
async->events |= COMEDI_CB_ERROR;
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/comedi/comedidev.h
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,6 @@ int comedi_buf_get(struct comedi_async *async, short *x);

unsigned int comedi_buf_write_alloc(struct comedi_async *async,
unsigned int nbytes);
unsigned int comedi_buf_write_alloc_strict(struct comedi_async *async,
unsigned int nbytes);
unsigned comedi_buf_write_free(struct comedi_async *async, unsigned int nbytes);
unsigned comedi_buf_read_alloc(struct comedi_async *async, unsigned nbytes);
unsigned comedi_buf_read_free(struct comedi_async *async, unsigned int nbytes);
Expand Down

0 comments on commit 41a25ed

Please sign in to comment.