Commit 05f665dd authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: Remove function vnt_int_process_data.

call vnt_start_interrupt_urb directly from vnt_start.

Move debug message to vnt_start_interrupt_urb.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Link: https://lore.kernel.org/r/dff3a1d0-4d24-d9ea-2a15-c81fd544bc79@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0fd349fd
......@@ -23,17 +23,6 @@
#include "power.h"
#include "usbpipe.h"
int vnt_int_start_interrupt(struct vnt_private *priv)
{
int ret = 0;
dev_dbg(&priv->usb->dev, "---->Interrupt Polling Thread\n");
ret = vnt_start_interrupt_urb(priv);
return ret;
}
static int vnt_int_report_rate(struct vnt_private *priv, u8 pkt_no, u8 tsr)
{
struct vnt_usb_send_context *context;
......
......@@ -41,7 +41,6 @@ struct vnt_interrupt_data {
u8 sw[2];
} __packed;
int vnt_int_start_interrupt(struct vnt_private *priv);
void vnt_int_process_data(struct vnt_private *priv);
#endif /* __INT_H__ */
......@@ -549,7 +549,7 @@ static int vnt_start(struct ieee80211_hw *hw)
priv->int_interval = 1; /* bInterval is set to 1 */
ret = vnt_int_start_interrupt(priv);
ret = vnt_start_interrupt_urb(priv);
if (ret)
goto free_all;
......
......@@ -176,6 +176,8 @@ int vnt_start_interrupt_urb(struct vnt_private *priv)
{
int ret = 0;
dev_dbg(&priv->usb->dev, "---->Interrupt Polling Thread\n");
if (priv->int_buf.in_use) {
ret = -EBUSY;
goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment