aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorShang XiaoJing <[email protected]>2022-09-27 10:29:19 +0800
committerJason Gunthorpe <[email protected]>2022-09-27 10:43:10 -0300
commitcbdae01d8b517b81ed271981395fee8ebd08ba7d (patch)
tree016e86d7afda2d2dea4d05fafad690d088e08a07 /lib/test_fortify/write_overflow-strncpy-src.c
parentf0588567976edcb6a7f6f20a9126b40e4d2da818 (diff)
IB/hfi1: Use skb_put_data() instead of skb_put/memcpy pair
Use skb_put_data() instead of skb_put() and memcpy(), which is shorter and clear. Drop the tmp variable that is not needed any more. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Shang XiaoJing <[email protected]> Reviewed-by: Dennis Dalessandro <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions