Commit d51e7cf
Wolfram Sang
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>1 parent b71a6e2 commit d51e7cf
1 file changed
Lines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
871 | | - | |
| 871 | + | |
872 | 872 | | |
873 | 873 | | |
874 | 874 | | |
| |||
938 | 938 | | |
939 | 939 | | |
940 | 940 | | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | 941 | | |
945 | 942 | | |
946 | 943 | | |
| |||
1460 | 1457 | | |
1461 | 1458 | | |
1462 | 1459 | | |
1463 | | - | |
1464 | | - | |
1465 | | - | |
1466 | | - | |
1467 | | - | |
| 1460 | + | |
1468 | 1461 | | |
1469 | 1462 | | |
1470 | 1463 | | |
| |||
0 commit comments