]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: mt65xx: convert set_speed function to void
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 25 Sep 2025 21:05:18 +0000 (23:05 +0200)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 4 Oct 2025 16:55:44 +0000 (18:55 +0200)
commitd51e7cfca3fe5540466322c33d665674530148dd
treec4bf9b7b19e3a4fc326e1d0719c2a3f33bb5a9d9
parentb71a6e2a1b710ea31c363a72c75f510ef35d8e69
i2c: mt65xx: convert set_speed function to void

cppcheck rightfully reports:
drivers/i2c/busses/i2c-mt65xx.c:1464:6: warning: Condition 'ret' is always false [knownConditionTrueFalse]

Make the function void and simplify the code.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
drivers/i2c/busses/i2c-mt65xx.c