|
@@ -31,7 +31,6 @@ int uwbd_evt_handle_rc_ie_rcv(struct uwb_event *evt)
|
|
|
int result = -EINVAL;
|
|
int result = -EINVAL;
|
|
|
struct device *dev = &evt->rc->uwb_dev.dev;
|
|
struct device *dev = &evt->rc->uwb_dev.dev;
|
|
|
struct uwb_rc_evt_ie_rcv *iercv;
|
|
struct uwb_rc_evt_ie_rcv *iercv;
|
|
|
- size_t iesize;
|
|
|
|
|
|
|
|
|
|
/* Is there enough data to decode it? */
|
|
/* Is there enough data to decode it? */
|
|
|
if (evt->notif.size < sizeof(*iercv)) {
|
|
if (evt->notif.size < sizeof(*iercv)) {
|
|
@@ -41,7 +40,6 @@ int uwbd_evt_handle_rc_ie_rcv(struct uwb_event *evt)
|
|
|
goto error;
|
|
goto error;
|
|
|
}
|
|
}
|
|
|
iercv = container_of(evt->notif.rceb, struct uwb_rc_evt_ie_rcv, rceb);
|
|
iercv = container_of(evt->notif.rceb, struct uwb_rc_evt_ie_rcv, rceb);
|
|
|
- iesize = le16_to_cpu(iercv->wIELength);
|
|
|
|
|
|
|
|
|
|
dev_dbg(dev, "IE received, element ID=%d\n", iercv->IEData[0]);
|
|
dev_dbg(dev, "IE received, element ID=%d\n", iercv->IEData[0]);
|
|
|
|
|
|