diff options
author | David S. Miller <davem@davemloft.net> | 2011-04-17 19:39:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-17 19:39:18 -0400 |
commit | a1e6216d1b5035db1d4c018cf841d3267f949281 (patch) | |
tree | 0a6d093386b246f27458c57d24aba79bd0278957 /drivers | |
parent | db47367451cbee4e8a3fd9389cc341f4acc43b1e (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/isdn/hisax/hfc_usb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/isdn/hisax/hfc_usb.c b/drivers/isdn/hisax/hfc_usb.c index ed9527aa5f2c..f407de0e006d 100644 --- a/drivers/isdn/hisax/hfc_usb.c +++ b/drivers/isdn/hisax/hfc_usb.c | |||
@@ -258,11 +258,9 @@ static void | |||
258 | ctrl_complete(struct urb *urb) | 258 | ctrl_complete(struct urb *urb) |
259 | { | 259 | { |
260 | hfcusb_data *hfc = (hfcusb_data *) urb->context; | 260 | hfcusb_data *hfc = (hfcusb_data *) urb->context; |
261 | ctrl_buft *buf; | ||
262 | 261 | ||
263 | urb->dev = hfc->dev; | 262 | urb->dev = hfc->dev; |
264 | if (hfc->ctrl_cnt) { | 263 | if (hfc->ctrl_cnt) { |
265 | buf = &hfc->ctrl_buff[hfc->ctrl_out_idx]; | ||
266 | hfc->ctrl_cnt--; /* decrement actual count */ | 264 | hfc->ctrl_cnt--; /* decrement actual count */ |
267 | if (++hfc->ctrl_out_idx >= HFC_CTRL_BUFSIZE) | 265 | if (++hfc->ctrl_out_idx >= HFC_CTRL_BUFSIZE) |
268 | hfc->ctrl_out_idx = 0; /* pointer wrap */ | 266 | hfc->ctrl_out_idx = 0; /* pointer wrap */ |
@@ -1097,7 +1095,7 @@ static int | |||
1097 | hfc_usb_init(hfcusb_data * hfc) | 1095 | hfc_usb_init(hfcusb_data * hfc) |
1098 | { | 1096 | { |
1099 | usb_fifo *fifo; | 1097 | usb_fifo *fifo; |
1100 | int i, err; | 1098 | int i; |
1101 | u_char b; | 1099 | u_char b; |
1102 | struct hisax_b_if *p_b_if[2]; | 1100 | struct hisax_b_if *p_b_if[2]; |
1103 | 1101 | ||
@@ -1112,7 +1110,7 @@ hfc_usb_init(hfcusb_data * hfc) | |||
1112 | } | 1110 | } |
1113 | 1111 | ||
1114 | /* first set the needed config, interface and alternate */ | 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 | /* do Chip reset */ | 1115 | /* do Chip reset */ |
1118 | write_usb(hfc, HFCUSB_CIRM, 8); | 1116 | write_usb(hfc, HFCUSB_CIRM, 8); |