diff options
author | Jean Sacren <sakiwit@gmail.com> | 2021-12-17 15:37:02 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-12-17 19:27:05 -0800 |
commit | 59060a47ca50bbdb1d863b73667a1065873ecc06 (patch) | |
tree | 45a328723f709840ef9fa7e0961c35dfa2e8b7d5 /sound/soc/soc-dai.c | |
parent | f730b65c9d85c84d6e5fd5f6fee20e2d62ffe558 (diff) | |
download | linux-stable-59060a47ca50bbdb1d863b73667a1065873ecc06.tar.gz linux-stable-59060a47ca50bbdb1d863b73667a1065873ecc06.tar.bz2 linux-stable-59060a47ca50bbdb1d863b73667a1065873ecc06.zip |
mptcp: clean up harmless false expressions
entry->addr.id is u8 with a range from 0 to 255 and MAX_ADDR_ID is 255.
We should drop both false expressions of (entry->addr.id > MAX_ADDR_ID).
We should also remove the obsolete parentheses in the first if branch.
Use U8_MAX for MAX_ADDR_ID and add a comment to show the link to
mptcp_addr_info.id as suggested by Mr. Matthieu Baerts.
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'sound/soc/soc-dai.c')
0 files changed, 0 insertions, 0 deletions