Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363927
b: refs/heads/master
c: dac59de
h: refs/heads/master
i:
  363925: 2da3074
  363923: 5f36b1c
  363919: 212a582
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Apr 5, 2013
1 parent c32fcd9 commit 98b2e04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 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: 0fcc9d48a0e620ee5097cbcbf8aedc5d736a01b8
refs/heads/master: dac59de2dd438a54007135ac3c2e6b6b06b5f6d6
17 changes: 4 additions & 13 deletions trunk/drivers/staging/comedi/comedi_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,6 @@ static void comedi_free_board_file_info(struct comedi_file_info *info)
}
}

static struct comedi_file_info
*comedi_file_info_from_board_minor(unsigned minor)
{
struct comedi_file_info *info;

BUG_ON(minor >= COMEDI_NUM_BOARD_MINORS);
mutex_lock(&comedi_board_minor_table_lock);
info = comedi_board_minor_table[minor];
mutex_unlock(&comedi_board_minor_table_lock);
return info;
}

static struct comedi_file_info
*comedi_file_info_from_subdevice_minor(unsigned minor)
{
Expand All @@ -188,7 +176,10 @@ static struct comedi_device *comedi_dev_from_board_minor(unsigned minor)
{
struct comedi_file_info *info;

info = comedi_file_info_from_board_minor(minor);
BUG_ON(minor >= COMEDI_NUM_BOARD_MINORS);
mutex_lock(&comedi_board_minor_table_lock);
info = comedi_board_minor_table[minor];
mutex_unlock(&comedi_board_minor_table_lock);
return comedi_dev_from_file_info(info);
}

Expand Down

0 comments on commit 98b2e04

Please sign in to comment.