mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-22 19:14:51 +00:00
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>
This commit is contained in:
parent
7fd9d28d1a
commit
735668f8e5
1 changed files with 5 additions and 8 deletions
Loading…
Add table
Add a link
Reference in a new issue