diff options
| author | Colin Ian King <[email protected]> | 2019-04-04 14:46:03 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-04-07 01:18:14 +0000 |
| commit | d1edc085559744fbda7a55e97eeae8bd6135a11b (patch) | |
| tree | 64bd82f21b8a038ee6a89f2ac89174d307123f87 /net/unix/af_unix.c | |
| parent | Merge branch 'net-phy-add-Amlogic-g12a-support' (diff) | |
| download | kernel-d1edc085559744fbda7a55e97eeae8bd6135a11b.tar.gz kernel-d1edc085559744fbda7a55e97eeae8bd6135a11b.zip | |
tcp: remove redundant check on tskb
The non-null check on tskb is always false because it is in an else
path of a check on tskb and hence tskb is null in this code block.
This is check is therefore redundant and can be removed as well
as the label coalesc.
if (tsbk) {
...
} else {
...
if (unlikely(!skb)) {
if (tskb) /* can never be true, redundant code */
goto coalesc;
return;
}
}
Addresses-Coverity: ("Logically dead code")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Mukesh Ojha <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
