]> git.baikalelectronics.ru Git - kernel.git/commit
net sched actions: use sizeof operator for buffer length
authorRoman Mashak <mrv@mojatatu.com>
Wed, 27 Jun 2018 17:33:33 +0000 (13:33 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jun 2018 13:12:03 +0000 (22:12 +0900)
commitc3776d2219c86712b2c8b2498286089128c32da9
treec4877d6372969434de29ea938a1eaeae68f74099
parent197630677429a30e4e785eb476f1c3093fa0e9b7
net sched actions: use sizeof operator for buffer length

Replace constant integer with sizeof() to clearly indicate
the destination buffer length in skb_header_pointer() calls.

Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_pedit.c