Commit 735668f
i2c: core: Allocate temp client on the stack in i2c_detect
The temp client is used only in scope of this function, so there's no
benefit in dynamic allocation.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>1 parent 7fd9d28 commit 735668f
1 file changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2461 | 2461 | | |
2462 | 2462 | | |
2463 | 2463 | | |
2464 | | - | |
| 2464 | + | |
2465 | 2465 | | |
2466 | 2466 | | |
2467 | 2467 | | |
| |||
2482 | 2482 | | |
2483 | 2483 | | |
2484 | 2484 | | |
2485 | | - | |
2486 | | - | |
2487 | | - | |
2488 | | - | |
| 2485 | + | |
| 2486 | + | |
2489 | 2487 | | |
2490 | 2488 | | |
2491 | 2489 | | |
2492 | 2490 | | |
2493 | 2491 | | |
2494 | | - | |
2495 | | - | |
| 2492 | + | |
| 2493 | + | |
2496 | 2494 | | |
2497 | 2495 | | |
2498 | 2496 | | |
2499 | 2497 | | |
2500 | | - | |
2501 | 2498 | | |
2502 | 2499 | | |
2503 | 2500 | | |
| |||
0 commit comments