Commit 57ec1abf authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: cb_pcidas: checkpatch.pl cleanup (break not useful)



Fix the checkpatch.pl warnings:

WARNING: break is not useful after a goto or return

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f1051676
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -461,7 +461,6 @@ static int ai_config_insn(struct comedi_device *dev, struct comedi_subdevice *s,
		break;
		break;
	default:
	default:
		return -EINVAL;
		return -EINVAL;
		break;
	}
	}
	return insn->n;
	return insn->n;
}
}
@@ -776,7 +775,6 @@ static int cb_pcidas_trimpot_write(struct comedi_device *dev,
	default:
	default:
		comedi_error(dev, "driver bug?");
		comedi_error(dev, "driver bug?");
		return -1;
		return -1;
		break;
	}
	}


	return 1;
	return 1;
@@ -1253,7 +1251,6 @@ static int cb_pcidas_ao_cmd(struct comedi_device *dev,
		spin_unlock_irqrestore(&dev->spinlock, flags);
		spin_unlock_irqrestore(&dev->spinlock, flags);
		comedi_error(dev, "error setting dac pacer source");
		comedi_error(dev, "error setting dac pacer source");
		return -1;
		return -1;
		break;
	}
	}
	spin_unlock_irqrestore(&dev->spinlock, flags);
	spin_unlock_irqrestore(&dev->spinlock, flags);