Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

uwb: fix variable set but not used warnings

Fix variable set but not used warnings in UWB.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Thomas Pugliese and committed by
Greg Kroah-Hartman
c6a64de0 99280164

-7
-3
drivers/uwb/beacon.c
··· 397 397 struct uwb_rc_evt_beacon *be; 398 398 struct uwb_beacon_frame *bf; 399 399 struct uwb_beca_e *bce; 400 - unsigned long last_ts; 401 400 402 401 rc = evt->rc; 403 402 be = container_of(evt->notif.rceb, struct uwb_rc_evt_beacon, rceb); ··· 439 440 mutex_lock(&bce->mutex); 440 441 /* purge old beacon data */ 441 442 kfree(bce->be); 442 - 443 - last_ts = bce->ts_jiffies; 444 443 445 444 /* Update commonly used fields */ 446 445 bce->ts_jiffies = evt->ts_jiffies;
-2
drivers/uwb/est.c
··· 258 258 { 259 259 unsigned long flags; 260 260 unsigned itr; 261 - u16 type_event_high; 262 261 int result = 0; 263 262 264 263 write_lock_irqsave(&uwb_est_lock, flags); ··· 267 268 goto out; 268 269 } 269 270 /* Find the right spot to insert it in */ 270 - type_event_high = type << 8 | event_high; 271 271 for (itr = 0; itr < uwb_est_used; itr++) 272 272 if (uwb_est[itr].type_event_high < type 273 273 && uwb_est[itr].vendor < vendor
-2
drivers/uwb/ie-rcv.c
··· 31 31 int result = -EINVAL; 32 32 struct device *dev = &evt->rc->uwb_dev.dev; 33 33 struct uwb_rc_evt_ie_rcv *iercv; 34 - size_t iesize; 35 34 36 35 /* Is there enough data to decode it? */ 37 36 if (evt->notif.size < sizeof(*iercv)) { ··· 40 41 goto error; 41 42 } 42 43 iercv = container_of(evt->notif.rceb, struct uwb_rc_evt_ie_rcv, rceb); 43 - iesize = le16_to_cpu(iercv->wIELength); 44 44 45 45 dev_dbg(dev, "IE received, element ID=%d\n", iercv->IEData[0]); 46 46