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

Commit c89e6be7 authored by Gulsah Kose's avatar Gulsah Kose Committed by Greg Kroah-Hartman
Browse files

staging: ft1000: ft1000-usb: Removed unnecessary else statement.



This patch fixes "else is not generally useful after a break or return"
checkpatch.pl warning in ft1000_hw.c

Signed-off-by: default avatarGulsah Kose <gulsah.1004@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3636ce82
Loading
Loading
Loading
Loading
+41 −43
Original line number Diff line number Diff line
@@ -566,10 +566,9 @@ static int ft1000_copy_down_pkt(struct net_device *netdev, u8 *packet, u16 len)
	if (ret) {
		DEBUG("ft1000 failed tx_urb %d\n", ret);
		return ret;
	} else {
	}
	pInfo->stats.tx_packets++;
	pInfo->stats.tx_bytes += (len + 14);
	}

	return 0;
}
@@ -998,7 +997,7 @@ static bool ft1000_receive_cmd(struct ft1000_usb *dev, u16 *pbuffer,
		DEBUG("FT1000:ft1000_receive_cmd:Invalid command length = %d\n",
		      size);
		return FALSE;
	} else {
	}
	ppseudohdr = (u16 *) pbuffer;
	ft1000_write_register(dev, FT1000_DPRAM_MAG_RX_BASE,
			      FT1000_REG_DPRAM_ADDR);
@@ -1045,7 +1044,6 @@ static bool ft1000_receive_cmd(struct ft1000_usb *dev, u16 *pbuffer,

	return TRUE;
}
}

static int ft1000_dsp_prov(void *arg)
{