Skip to content

Commit

Permalink
staging: comedi: drivers: jr3_pci.c: fix for coding style issue
Browse files Browse the repository at this point in the history
fixed few error and warning messages as reported by checkpatch.pl

Signed-off-by: Kumar Amit Mehta <gmate.amit@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Kumar Amit Mehta authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent c965c8b commit 7803d8e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions drivers/staging/comedi/drivers/jr3_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ static int read_idm_word(const u8 *data, size_t size, int *pos,
return result;
}

static int jr3_download_firmware(struct comedi_device *dev, const u8 * data,
static int jr3_download_firmware(struct comedi_device *dev, const u8 *data,
size_t size)
{
/*
Expand Down Expand Up @@ -470,14 +470,13 @@ static struct poll_delay_t jr3_pci_poll_subdevice(struct comedi_subdevice *s)
struct jr3_channel __iomem *channel = p->channel;
int errors = get_u16(&channel->errors);

if (errors != p->errors) {
if (errors != p->errors)
p->errors = errors;
}
if (errors & (watch_dog | watch_dog2 | sensor_change)) {

if (errors & (watch_dog | watch_dog2 | sensor_change))
/* Sensor communication lost, force poll mode */
p->state = state_jr3_poll;

}
switch (p->state) {
case state_jr3_poll: {
u16 model_no = get_u16(&channel->model_no);
Expand Down

0 comments on commit 7803d8e

Please sign in to comment.