Repository navigation
Commit f0d4eb2
packet: fix a couple of cppcheck warnings
Doesn't bring much, but also doesn't hurt us to fix 'em:
1) In tpacket_rcv() flush dcache page we can restirct the scope
for start and end and remove one layer of indent.
2) In tpacket_destruct_skb() we can restirct the scope for ph.
3) In alloc_one_pg_vec_page() we can remove the NULL assignment
and change spacing a bit.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 967680e commit f0d4eb2
1 file changed
Lines changed: 15 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2009 | 2009 | | |
2010 | 2010 | | |
2011 | 2011 | | |
| 2012 | + | |
2012 | 2013 | | |
2013 | | - | |
| 2014 | + | |
2014 | 2015 | | |
2015 | 2016 | | |
2016 | | - | |
2017 | | - | |
2018 | | - | |
2019 | | - | |
2020 | | - | |
2021 | | - | |
2022 | | - | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
2023 | 2022 | | |
| 2023 | + | |
2024 | 2024 | | |
| 2025 | + | |
2025 | 2026 | | |
2026 | 2027 | | |
2027 | 2028 | | |
| |||
2050 | 2051 | | |
2051 | 2052 | | |
2052 | 2053 | | |
2053 | | - | |
2054 | 2054 | | |
2055 | 2055 | | |
| 2056 | + | |
2056 | 2057 | | |
2057 | 2058 | | |
2058 | 2059 | | |
| |||
3649 | 3650 | | |
3650 | 3651 | | |
3651 | 3652 | | |
3652 | | - | |
| 3653 | + | |
3653 | 3654 | | |
3654 | 3655 | | |
3655 | 3656 | | |
3656 | 3657 | | |
3657 | | - | |
3658 | 3658 | | |
3659 | 3659 | | |
3660 | 3660 | | |
3661 | | - | |
3662 | | - | |
3663 | | - | |
| 3661 | + | |
3664 | 3662 | | |
3665 | | - | |
3666 | 3663 | | |
3667 | 3664 | | |
3668 | 3665 | | |
3669 | | - | |
3670 | | - | |
3671 | | - | |
| 3666 | + | |
3672 | 3667 | | |
3673 | | - | |
| 3668 | + | |
3674 | 3669 | | |
3675 | 3670 | | |
3676 | 3671 | | |
3677 | | - | |
3678 | | - | |
3679 | | - | |
| 3672 | + | |
3680 | 3673 | | |
3681 | 3674 | | |
3682 | 3675 | | |
| |||
0 commit comments