Commit 31612f3
committed
ACPI: processor: idle: Redefine two functions as void
Notice that acpi_processor_power_init() and acpi_processor_power_exit()
don't need to return any values because their callers don't check them
anyway, so redefine those functions as void.
While at it, rearrange the code in acpi_processor_power_init() to
reduce the indentation level, get rid of a redundant local variable
in that function, and rephrase a code comment in it.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Tested-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20251223100914.2407069-5-lihuisong@huawei.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent 0089ce1 commit 31612f3
2 files changed
Lines changed: 21 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1391 | 1391 | | |
1392 | 1392 | | |
1393 | 1393 | | |
1394 | | - | |
| 1394 | + | |
1395 | 1395 | | |
1396 | | - | |
1397 | 1396 | | |
1398 | 1397 | | |
1399 | 1398 | | |
1400 | | - | |
| 1399 | + | |
1401 | 1400 | | |
1402 | 1401 | | |
1403 | 1402 | | |
1404 | 1403 | | |
1405 | 1404 | | |
1406 | 1405 | | |
1407 | | - | |
1408 | | - | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
| 1406 | + | |
| 1407 | + | |
1412 | 1408 | | |
1413 | | - | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
1414 | 1412 | | |
1415 | | - | |
1416 | | - | |
1417 | | - | |
1418 | | - | |
1419 | | - | |
| 1413 | + | |
1420 | 1414 | | |
1421 | | - | |
1422 | | - | |
1423 | | - | |
1424 | | - | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
1425 | 1424 | | |
1426 | | - | |
1427 | 1425 | | |
1428 | 1426 | | |
1429 | | - | |
| 1427 | + | |
1430 | 1428 | | |
1431 | 1429 | | |
1432 | 1430 | | |
1433 | 1431 | | |
1434 | | - | |
| 1432 | + | |
1435 | 1433 | | |
1436 | 1434 | | |
1437 | 1435 | | |
1438 | 1436 | | |
1439 | 1437 | | |
1440 | 1438 | | |
1441 | 1439 | | |
1442 | | - | |
1443 | 1440 | | |
1444 | 1441 | | |
1445 | 1442 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
423 | | - | |
| 422 | + | |
| 423 | + | |
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| |||
0 commit comments