aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorHsin-Yu.Chen <[email protected]>2024-03-06 04:19:00 +0000
committerWolfram Sang <[email protected]>2024-03-07 08:36:08 +0000
commitf311507c5336ad6b9ca7687c35c3bd7a4fe2868c (patch)
treefb396fc74d02818fd46b41dfe014ba06071ff645 /net/switchdev/switchdev.c
parenti2c: smbus: Prepare i2c_register_spd for usage on muxed segments (diff)
downloadkernel-f311507c5336ad6b9ca7687c35c3bd7a4fe2868c.tar.gz
kernel-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 <[email protected]> Reviewed-by: Andi Shyti <[email protected]> [wsa: slightly updated commit message] Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions