Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c16975a0 authored by Michal Nazarewicz's avatar Michal Nazarewicz Committed by Greg Kroah-Hartman
Browse files

staging: comedi: fix potentially uninitialised variable



If none of the if conditions take a true path, the ret variable will
never be assigned a value.

Signed-off-by: default avatarMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6ce4eac1
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -465,7 +465,7 @@ static int vmk80xx_do_insn_bits(struct comedi_device *dev,
	unsigned char *rx_buf = devpriv->usb_rx_buf;
	unsigned char *rx_buf = devpriv->usb_rx_buf;
	unsigned char *tx_buf = devpriv->usb_tx_buf;
	unsigned char *tx_buf = devpriv->usb_tx_buf;
	int reg, cmd;
	int reg, cmd;
	int ret;
	int ret = 0;


	if (devpriv->model == VMK8061_MODEL) {
	if (devpriv->model == VMK8061_MODEL) {
		reg = VMK8061_DO_REG;
		reg = VMK8061_DO_REG;