Commit b6e5c46
PCI/sysfs: Use __free() in reset_method_store()
Use __free() from cleanup.h to handle freeing options in
reset_method_store() as it simplifies the code flow.
Link: https://lore.kernel.org/r/20241028174046.1736-3-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>1 parent 10269d5 commit b6e5c46
1 file changed
Lines changed: 7 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
1460 | 1461 | | |
1461 | 1462 | | |
1462 | 1463 | | |
1463 | | - | |
| 1464 | + | |
1464 | 1465 | | |
1465 | 1466 | | |
1466 | 1467 | | |
| |||
1475 | 1476 | | |
1476 | 1477 | | |
1477 | 1478 | | |
1478 | | - | |
| 1479 | + | |
1479 | 1480 | | |
1480 | 1481 | | |
1481 | 1482 | | |
| |||
1487 | 1488 | | |
1488 | 1489 | | |
1489 | 1490 | | |
| 1491 | + | |
1490 | 1492 | | |
1491 | 1493 | | |
1492 | 1494 | | |
1493 | | - | |
| 1495 | + | |
1494 | 1496 | | |
1495 | 1497 | | |
1496 | 1498 | | |
1497 | 1499 | | |
1498 | | - | |
| 1500 | + | |
1499 | 1501 | | |
1500 | 1502 | | |
1501 | 1503 | | |
1502 | 1504 | | |
1503 | | - | |
| 1505 | + | |
1504 | 1506 | | |
1505 | 1507 | | |
1506 | 1508 | | |
| |||
1513 | 1515 | | |
1514 | 1516 | | |
1515 | 1517 | | |
1516 | | - | |
1517 | 1518 | | |
1518 | | - | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
1522 | | - | |
1523 | 1519 | | |
1524 | 1520 | | |
1525 | 1521 | | |
| |||
0 commit comments