Commit a1e6216d authored by David S. Miller's avatar David S. Miller

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

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

Similarly for 'err' in hfc_usb_init().
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent db473674
...@@ -258,11 +258,9 @@ static void ...@@ -258,11 +258,9 @@ static void
ctrl_complete(struct urb *urb) ctrl_complete(struct urb *urb)
{ {
hfcusb_data *hfc = (hfcusb_data *) urb->context; hfcusb_data *hfc = (hfcusb_data *) urb->context;
ctrl_buft *buf;
urb->dev = hfc->dev; urb->dev = hfc->dev;
if (hfc->ctrl_cnt) { if (hfc->ctrl_cnt) {
buf = &hfc->ctrl_buff[hfc->ctrl_out_idx];
hfc->ctrl_cnt--; /* decrement actual count */ hfc->ctrl_cnt--; /* decrement actual count */
if (++hfc->ctrl_out_idx >= HFC_CTRL_BUFSIZE) if (++hfc->ctrl_out_idx >= HFC_CTRL_BUFSIZE)
hfc->ctrl_out_idx = 0; /* pointer wrap */ hfc->ctrl_out_idx = 0; /* pointer wrap */
...@@ -1097,7 +1095,7 @@ static int ...@@ -1097,7 +1095,7 @@ static int
hfc_usb_init(hfcusb_data * hfc) hfc_usb_init(hfcusb_data * hfc)
{ {
usb_fifo *fifo; usb_fifo *fifo;
int i, err; int i;
u_char b; u_char b;
struct hisax_b_if *p_b_if[2]; struct hisax_b_if *p_b_if[2];
...@@ -1112,7 +1110,7 @@ hfc_usb_init(hfcusb_data * hfc) ...@@ -1112,7 +1110,7 @@ hfc_usb_init(hfcusb_data * hfc)
} }
/* first set the needed config, interface and alternate */ /* first set the needed config, interface and alternate */
err = usb_set_interface(hfc->dev, hfc->if_used, hfc->alt_used); usb_set_interface(hfc->dev, hfc->if_used, hfc->alt_used);
/* do Chip reset */ /* do Chip reset */
write_usb(hfc, HFCUSB_CIRM, 8); write_usb(hfc, HFCUSB_CIRM, 8);
......
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