diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-12-24 22:41:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-25 01:48:26 +0300 |
commit | bd437c99cf63b8adaea51156db383f9dfdd57503 (patch) | |
tree | 08fd7cb7eeab56f92c9167ae179c2b485b381d90 /net/dccp | |
parent | 61988bd281c9b08e0cc084f0b2da3b109c4c39c8 (diff) | |
download | linux-bd437c99cf63b8adaea51156db383f9dfdd57503.tar.xz |
drivers/net: appletalk/cops: remove redundant if statement and mask
The two different assignments for pkt_len are actually the same and
so the if statement is redundant and can be removed. Masking a u8
return value from inb() with 0xFF is also redundant and can also be
emoved.
Similarly, the two different outb calls are identical as the mask
of 0xff on the second outb is redundant since a u8 is being written,
so the if statement is also redundant and can be also removed.
Detected by CoverityScan, CID#1475639 ("Identical code for different
branches")
V2: Remove the if statement for the outb calls, thanks to David
Miller for spotting this.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
0 files changed, 0 insertions, 0 deletions