Commit a1e6216d1b5035db1d4c018cf841d3267f949281
1 parent
db47367451
Exists in
master
and in
4 other branches
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: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 2 additions and 4 deletions Side-by-side Diff
drivers/isdn/hisax/hfc_usb.c
... | ... | @@ -258,11 +258,9 @@ |
258 | 258 | ctrl_complete(struct urb *urb) |
259 | 259 | { |
260 | 260 | hfcusb_data *hfc = (hfcusb_data *) urb->context; |
261 | - ctrl_buft *buf; | |
262 | 261 | |
263 | 262 | urb->dev = hfc->dev; |
264 | 263 | if (hfc->ctrl_cnt) { |
265 | - buf = &hfc->ctrl_buff[hfc->ctrl_out_idx]; | |
266 | 264 | hfc->ctrl_cnt--; /* decrement actual count */ |
267 | 265 | if (++hfc->ctrl_out_idx >= HFC_CTRL_BUFSIZE) |
268 | 266 | hfc->ctrl_out_idx = 0; /* pointer wrap */ |
... | ... | @@ -1097,7 +1095,7 @@ |
1097 | 1095 | hfc_usb_init(hfcusb_data * hfc) |
1098 | 1096 | { |
1099 | 1097 | usb_fifo *fifo; |
1100 | - int i, err; | |
1098 | + int i; | |
1101 | 1099 | u_char b; |
1102 | 1100 | struct hisax_b_if *p_b_if[2]; |
1103 | 1101 | |
... | ... | @@ -1112,7 +1110,7 @@ |
1112 | 1110 | } |
1113 | 1111 | |
1114 | 1112 | /* first set the needed config, interface and alternate */ |
1115 | - err = usb_set_interface(hfc->dev, hfc->if_used, hfc->alt_used); | |
1113 | + usb_set_interface(hfc->dev, hfc->if_used, hfc->alt_used); | |
1116 | 1114 | |
1117 | 1115 | /* do Chip reset */ |
1118 | 1116 | write_usb(hfc, HFCUSB_CIRM, 8); |