Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363916
b: refs/heads/master
c: 8907cf6
h: refs/heads/master
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Apr 5, 2013
1 parent 1752fa2 commit c16a9ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: eda56825d582901b6a1c36fb8d754a3ebee0388c
refs/heads/master: 8907cf6c5da2bb6d877c8ba59f90aff1b72cd814
5 changes: 2 additions & 3 deletions trunk/drivers/staging/comedi/comedi_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
#include "comedi_internal.h"

#define COMEDI_NUM_MINORS 0x100
#define COMEDI_FIRST_SUBDEVICE_MINOR COMEDI_NUM_BOARD_MINORS

#ifdef CONFIG_COMEDI_DEBUG
int comedi_debug;
Expand Down Expand Up @@ -2400,7 +2399,7 @@ int comedi_alloc_subdevice_minor(struct comedi_subdevice *s)
if (s->subdev_flags & SDF_CMD_WRITE)
info->write_subdevice = s;
mutex_lock(&comedi_file_info_table_lock);
for (i = COMEDI_FIRST_SUBDEVICE_MINOR; i < COMEDI_NUM_MINORS; ++i) {
for (i = COMEDI_NUM_BOARD_MINORS; i < COMEDI_NUM_MINORS; ++i) {
if (comedi_file_info_table[i] == NULL) {
comedi_file_info_table[i] = info;
break;
Expand Down Expand Up @@ -2433,7 +2432,7 @@ void comedi_free_subdevice_minor(struct comedi_subdevice *s)
return;

BUG_ON(s->minor >= COMEDI_NUM_MINORS);
BUG_ON(s->minor < COMEDI_FIRST_SUBDEVICE_MINOR);
BUG_ON(s->minor < COMEDI_NUM_BOARD_MINORS);

info = comedi_clear_minor(s->minor);
if (s->class_dev) {
Expand Down

0 comments on commit c16a9ef

Please sign in to comment.