Commit b6c55b1
committed
ACPI: scan: Change acpi_scan_init() return value type to void
The only caller of acpi_scan_init(), acpi_init(), doesn't check its
return value, so turn it into a void function.
This avoids complaints from the Smatch static checker that the
function should return a negative error code when it fails, which
is not really a problem in this particular case.
No intentional functional impact.
Link: https://lore.kernel.org/linux-acpi/20220106082317.GA9123@kili/
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>1 parent bca2175 commit b6c55b1
2 files changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2542 | 2542 | | |
2543 | 2543 | | |
2544 | 2544 | | |
2545 | | - | |
| 2545 | + | |
2546 | 2546 | | |
2547 | | - | |
2548 | 2547 | | |
2549 | 2548 | | |
2550 | 2549 | | |
| |||
2594 | 2593 | | |
2595 | 2594 | | |
2596 | 2595 | | |
2597 | | - | |
2598 | | - | |
| 2596 | + | |
2599 | 2597 | | |
2600 | 2598 | | |
2601 | 2599 | | |
| |||
2604 | 2602 | | |
2605 | 2603 | | |
2606 | 2604 | | |
2607 | | - | |
2608 | | - | |
| 2605 | + | |
2609 | 2606 | | |
2610 | 2607 | | |
2611 | 2608 | | |
| |||
2620 | 2617 | | |
2621 | 2618 | | |
2622 | 2619 | | |
2623 | | - | |
2624 | 2620 | | |
2625 | 2621 | | |
2626 | 2622 | | |
| |||
0 commit comments