Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353946
b: refs/heads/master
c: 401d99d
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jan 7, 2013
1 parent a23b14d commit d4a298c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 9682e28c49f85d4a3c5d2cab401d03ae266f6dde
refs/heads/master: 401d99de5c0b70f7d64a410ed01d19032698656c
12 changes: 6 additions & 6 deletions trunk/drivers/staging/comedi/comedi_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,19 @@ comedi_read_subdevice(const struct comedi_file_info *info)
{
if (info->read_subdevice)
return info->read_subdevice;
if (info->device == NULL)
return NULL;
return info->device->read_subdev;
if (info->device)
return info->device->read_subdev;
return NULL;
}

static struct comedi_subdevice *
comedi_write_subdevice(const struct comedi_file_info *info)
{
if (info->write_subdevice)
return info->write_subdevice;
if (info->device == NULL)
return NULL;
return info->device->write_subdev;
if (info->device)
return info->device->write_subdev;
return NULL;
}

static int resize_async_buffer(struct comedi_device *dev,
Expand Down

0 comments on commit d4a298c

Please sign in to comment.