Skip to content

Commit

Permalink
staging: comedi_fops.c whitespace fixes
Browse files Browse the repository at this point in the history
Changed whitespaces in comedi/*.c to tabs where necessary. All .c
files within comedi now have no obvious style problems as reported by
checkpatch.pl

Signed-off-by: Florian Schmaus <fschmaus@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Florian Schmaus authored and Greg Kroah-Hartman committed Dec 16, 2011
1 parent d539671 commit 70fe742
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions drivers/staging/comedi/comedi_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1479,10 +1479,10 @@ static int comedi_mmap(struct file *file, struct vm_area_struct *vma)

dev_file_info = comedi_get_device_file_info(minor);
if (dev_file_info == NULL)
return -ENODEV;
return -ENODEV;
dev = dev_file_info->device;
if (dev == NULL)
return -ENODEV;
return -ENODEV;

mutex_lock(&dev->mutex);
if (!dev->attached) {
Expand Down Expand Up @@ -1556,10 +1556,10 @@ static unsigned int comedi_poll(struct file *file, poll_table * wait)
dev_file_info = comedi_get_device_file_info(minor);

if (dev_file_info == NULL)
return -ENODEV;
return -ENODEV;
dev = dev_file_info->device;
if (dev == NULL)
return -ENODEV;
return -ENODEV;

mutex_lock(&dev->mutex);
if (!dev->attached) {
Expand Down Expand Up @@ -1610,10 +1610,10 @@ static ssize_t comedi_write(struct file *file, const char __user *buf,
dev_file_info = comedi_get_device_file_info(minor);

if (dev_file_info == NULL)
return -ENODEV;
return -ENODEV;
dev = dev_file_info->device;
if (dev == NULL)
return -ENODEV;
return -ENODEV;

if (!dev->attached) {
DPRINTK("no driver configured on comedi%i\n", dev->minor);
Expand Down Expand Up @@ -1721,10 +1721,10 @@ static ssize_t comedi_read(struct file *file, char __user *buf, size_t nbytes,
dev_file_info = comedi_get_device_file_info(minor);

if (dev_file_info == NULL)
return -ENODEV;
return -ENODEV;
dev = dev_file_info->device;
if (dev == NULL)
return -ENODEV;
return -ENODEV;

if (!dev->attached) {
DPRINTK("no driver configured on comedi%i\n", dev->minor);
Expand Down Expand Up @@ -1931,10 +1931,10 @@ static int comedi_close(struct inode *inode, struct file *file)
dev_file_info = comedi_get_device_file_info(minor);

if (dev_file_info == NULL)
return -ENODEV;
return -ENODEV;
dev = dev_file_info->device;
if (dev == NULL)
return -ENODEV;
return -ENODEV;

mutex_lock(&dev->mutex);

Expand Down Expand Up @@ -1973,10 +1973,10 @@ static int comedi_fasync(int fd, struct file *file, int on)
dev_file_info = comedi_get_device_file_info(minor);

if (dev_file_info == NULL)
return -ENODEV;
return -ENODEV;
dev = dev_file_info->device;
if (dev == NULL)
return -ENODEV;
return -ENODEV;

return fasync_helper(fd, file, on, &dev->async_queue);
}
Expand Down

0 comments on commit 70fe742

Please sign in to comment.