aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorHsin-Yu.Chen <harry021633@gmail.com>2024-03-06 12:19:00 +0800
committerWolfram Sang <wsa+renesas@sang-engineering.com>2024-03-07 09:36:08 +0100
commitf311507c5336ad6b9ca7687c35c3bd7a4fe2868c (patch)
treefb396fc74d02818fd46b41dfe014ba06071ff645 /scripts/generate_rust_analyzer.py
parenti2c: smbus: Prepare i2c_register_spd for usage on muxed segments (diff)
downloadlinux-rng-f311507c5336ad6b9ca7687c35c3bd7a4fe2868c.tar.xz
linux-rng-f311507c5336ad6b9ca7687c35c3bd7a4fe2868c.zip
i2c: remove redundant condition
I2C_M_RD is defined as and guaranteed to be 1 and 'flag & I2C_M_RD' is one or zero. No need for an additional condition to obtain the value. Signed-off-by: Hsin-Yu.Chen <harry021633@gmail.com> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> [wsa: slightly updated commit message] Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions