Commit 7803d8e0 authored by Kumar Amit Mehta's avatar Kumar Amit Mehta Committed by Greg Kroah-Hartman
Browse files

staging: comedi: drivers: jr3_pci.c: fix for coding style issue



fixed few error and warning messages as reported by checkpatch.pl

Signed-off-by: default avatarKumar Amit Mehta <gmate.amit@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c965c8b7
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -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);