Commit 3c76c58f authored by David S. Miller's avatar David S. Miller

isdn: hfcsusb: Fix set-but-unused variables.

The variable 'buf' is set but unused in
ctrl_complete().  Just kill it off.

Similarly for the variable 'err' in setup_hfcsusb().
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a719e0a8
...@@ -118,14 +118,12 @@ static void ...@@ -118,14 +118,12 @@ static void
ctrl_complete(struct urb *urb) ctrl_complete(struct urb *urb)
{ {
struct hfcsusb *hw = (struct hfcsusb *) urb->context; struct hfcsusb *hw = (struct hfcsusb *) urb->context;
struct ctrl_buf *buf;
if (debug & DBG_HFC_CALL_TRACE) if (debug & DBG_HFC_CALL_TRACE)
printk(KERN_DEBUG "%s: %s\n", hw->name, __func__); printk(KERN_DEBUG "%s: %s\n", hw->name, __func__);
urb->dev = hw->dev; urb->dev = hw->dev;
if (hw->ctrl_cnt) { if (hw->ctrl_cnt) {
buf = &hw->ctrl_buff[hw->ctrl_out_idx];
hw->ctrl_cnt--; /* decrement actual count */ hw->ctrl_cnt--; /* decrement actual count */
if (++hw->ctrl_out_idx >= HFC_CTRL_BUFSIZE) if (++hw->ctrl_out_idx >= HFC_CTRL_BUFSIZE)
hw->ctrl_out_idx = 0; /* pointer wrap */ hw->ctrl_out_idx = 0; /* pointer wrap */
...@@ -1726,7 +1724,6 @@ hfcsusb_stop_endpoint(struct hfcsusb *hw, int channel) ...@@ -1726,7 +1724,6 @@ hfcsusb_stop_endpoint(struct hfcsusb *hw, int channel)
static int static int
setup_hfcsusb(struct hfcsusb *hw) setup_hfcsusb(struct hfcsusb *hw)
{ {
int err;
u_char b; u_char b;
if (debug & DBG_HFC_CALL_TRACE) if (debug & DBG_HFC_CALL_TRACE)
...@@ -1745,7 +1742,7 @@ setup_hfcsusb(struct hfcsusb *hw) ...@@ -1745,7 +1742,7 @@ setup_hfcsusb(struct hfcsusb *hw)
} }
/* first set the needed config, interface and alternate */ /* first set the needed config, interface and alternate */
err = usb_set_interface(hw->dev, hw->if_used, hw->alt_used); (void) usb_set_interface(hw->dev, hw->if_used, hw->alt_used);
hw->led_state = 0; hw->led_state = 0;
......
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