]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i2c: atr: do not create mapping in detach_addr()
authorCosmin Tanislav <demonsingur@gmail.com>
Wed, 7 May 2025 12:19:10 +0000 (15:19 +0300)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 22 May 2025 09:07:04 +0000 (11:07 +0200)
commit5efe815ad7355655f3a6ce9593530afd6ecc6d21
tree0521757eef1d97619245320d12bdc8ba34248837
parent5988589eb38124f6eb311ada0f92a0b68625659d
i2c: atr: do not create mapping in detach_addr()

It is useless to create a new mapping just to detach it immediately.

Use the newly added i2c_atr_find_mapping_by_addr() function to avoid it,
and exit without logging an error if not found.

Signed-off-by: Cosmin Tanislav <demonsingur@gmail.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
drivers/i2c/i2c-atr.c