Commit 752dd40
committed
ACPI: utils: Return bool from acpi_evaluate_reference()
JIRA: https://issues.redhat.com/browse/RHEL-26871
commit 6909e0f
Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Date: Fri Dec 8 21:06:04 2023 +0100
There are only 4 users of acpi_evaluate_reference() and none of them
actually cares about the reason why it fails. All of them are only
interested in whether or not it is successful, so it can return a bool
value indicating that.
Modify acpi_evaluate_reference() as per the observation above and update
its callers accordingly so as to get rid of useless code and local
variables.
The observable behavior of the kernel is not expected to change after
this modification of the code.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>1 parent 6183061 commit 752dd40
File tree
6 files changed
+20
-38
lines changed- drivers
- acpi
- platform/surface
- include/acpi
6 files changed
+20
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
577 | 576 | | |
578 | 577 | | |
579 | 578 | | |
580 | 579 | | |
581 | 580 | | |
582 | 581 | | |
583 | | - | |
584 | | - | |
585 | | - | |
| 582 | + | |
586 | 583 | | |
587 | 584 | | |
588 | 585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2001 | 2001 | | |
2002 | 2002 | | |
2003 | 2003 | | |
2004 | | - | |
2005 | 2004 | | |
2006 | 2005 | | |
2007 | 2006 | | |
| |||
2015 | 2014 | | |
2016 | 2015 | | |
2017 | 2016 | | |
2018 | | - | |
2019 | | - | |
| 2017 | + | |
2020 | 2018 | | |
2021 | 2019 | | |
2022 | 2020 | | |
| |||
2025 | 2023 | | |
2026 | 2024 | | |
2027 | 2025 | | |
| 2026 | + | |
2028 | 2027 | | |
2029 | 2028 | | |
2030 | 2029 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | 250 | | |
252 | 251 | | |
253 | 252 | | |
254 | 253 | | |
255 | 254 | | |
256 | 255 | | |
257 | 256 | | |
258 | | - | |
259 | | - | |
| 257 | + | |
260 | 258 | | |
261 | 259 | | |
262 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
337 | 335 | | |
338 | 336 | | |
339 | 337 | | |
340 | 338 | | |
| 339 | + | |
341 | 340 | | |
342 | 341 | | |
343 | 342 | | |
344 | | - | |
| 343 | + | |
345 | 344 | | |
346 | 345 | | |
347 | 346 | | |
| |||
352 | 351 | | |
353 | 352 | | |
354 | 353 | | |
355 | | - | |
356 | | - | |
| 354 | + | |
357 | 355 | | |
358 | | - | |
359 | 356 | | |
360 | 357 | | |
361 | 358 | | |
362 | | - | |
363 | | - | |
| 359 | + | |
364 | 360 | | |
365 | | - | |
366 | 361 | | |
367 | 362 | | |
368 | 363 | | |
369 | 364 | | |
370 | 365 | | |
371 | 366 | | |
372 | | - | |
373 | | - | |
| 367 | + | |
| 368 | + | |
374 | 369 | | |
375 | | - | |
376 | 370 | | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | 371 | | |
382 | 372 | | |
383 | 373 | | |
384 | 374 | | |
385 | 375 | | |
386 | 376 | | |
| 377 | + | |
| 378 | + | |
387 | 379 | | |
388 | 380 | | |
389 | 381 | | |
390 | | - | |
| 382 | + | |
391 | 383 | | |
392 | 384 | | |
393 | 385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
741 | | - | |
742 | 741 | | |
743 | 742 | | |
744 | 743 | | |
745 | 744 | | |
746 | 745 | | |
747 | 746 | | |
748 | | - | |
749 | | - | |
| 747 | + | |
750 | 748 | | |
751 | 749 | | |
752 | 750 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
0 commit comments