diff options
| author | Thomas Pugliese <thomas.pugliese@gmail.com> | 2014-04-28 15:53:27 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 18:18:48 -0400 |
| commit | c6a64de08e52235b570fedbe927cc5f3127ca47e (patch) | |
| tree | 8d59c9acf7f64054d9766587dd86dbd5885a25b0 /drivers/uwb/ie-rcv.c | |
| parent | 992801645bd9458d9317a552e194bf27f4d53151 (diff) | |
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>
Diffstat (limited to 'drivers/uwb/ie-rcv.c')
| -rw-r--r-- | drivers/uwb/ie-rcv.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/uwb/ie-rcv.c b/drivers/uwb/ie-rcv.c index 917e6d78a798..5fac5744a699 100644 --- a/drivers/uwb/ie-rcv.c +++ b/drivers/uwb/ie-rcv.c | |||
| @@ -31,7 +31,6 @@ int uwbd_evt_handle_rc_ie_rcv(struct uwb_event *evt) | |||
| 31 | int result = -EINVAL; | 31 | int result = -EINVAL; |
| 32 | struct device *dev = &evt->rc->uwb_dev.dev; | 32 | struct device *dev = &evt->rc->uwb_dev.dev; |
| 33 | struct uwb_rc_evt_ie_rcv *iercv; | 33 | struct uwb_rc_evt_ie_rcv *iercv; |
| 34 | size_t iesize; | ||
| 35 | 34 | ||
| 36 | /* Is there enough data to decode it? */ | 35 | /* Is there enough data to decode it? */ |
| 37 | if (evt->notif.size < sizeof(*iercv)) { | 36 | if (evt->notif.size < sizeof(*iercv)) { |
| @@ -41,7 +40,6 @@ int uwbd_evt_handle_rc_ie_rcv(struct uwb_event *evt) | |||
| 41 | goto error; | 40 | goto error; |
| 42 | } | 41 | } |
| 43 | iercv = container_of(evt->notif.rceb, struct uwb_rc_evt_ie_rcv, rceb); | 42 | iercv = container_of(evt->notif.rceb, struct uwb_rc_evt_ie_rcv, rceb); |
| 44 | iesize = le16_to_cpu(iercv->wIELength); | ||
| 45 | 43 | ||
| 46 | dev_dbg(dev, "IE received, element ID=%d\n", iercv->IEData[0]); | 44 | dev_dbg(dev, "IE received, element ID=%d\n", iercv->IEData[0]); |
| 47 | 45 | ||
