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/est.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/est.c')
-rw-r--r-- | drivers/uwb/est.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/uwb/est.c b/drivers/uwb/est.c index 457f31d99bf4..f3e232584284 100644 --- a/drivers/uwb/est.c +++ b/drivers/uwb/est.c | |||
@@ -258,7 +258,6 @@ int uwb_est_register(u8 type, u8 event_high, u16 vendor, u16 product, | |||
258 | { | 258 | { |
259 | unsigned long flags; | 259 | unsigned long flags; |
260 | unsigned itr; | 260 | unsigned itr; |
261 | u16 type_event_high; | ||
262 | int result = 0; | 261 | int result = 0; |
263 | 262 | ||
264 | write_lock_irqsave(&uwb_est_lock, flags); | 263 | write_lock_irqsave(&uwb_est_lock, flags); |
@@ -268,7 +267,6 @@ int uwb_est_register(u8 type, u8 event_high, u16 vendor, u16 product, | |||
268 | goto out; | 267 | goto out; |
269 | } | 268 | } |
270 | /* Find the right spot to insert it in */ | 269 | /* Find the right spot to insert it in */ |
271 | type_event_high = type << 8 | event_high; | ||
272 | for (itr = 0; itr < uwb_est_used; itr++) | 270 | for (itr = 0; itr < uwb_est_used; itr++) |
273 | if (uwb_est[itr].type_event_high < type | 271 | if (uwb_est[itr].type_event_high < type |
274 | && uwb_est[itr].vendor < vendor | 272 | && uwb_est[itr].vendor < vendor |