OSDN Git Service

staging: visornic: use skb_put_zero() instead of open-coded version
authorJann Horn <jannh@google.com>
Fri, 15 Feb 2019 18:16:16 +0000 (19:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Feb 2019 14:35:25 +0000 (15:35 +0100)
commit17b7abbf1e3bf143027352a5da38611c9c4e8c96
tree5ba3685f4fd2917fa8e73da61f23a8679be2b920
parentcbebe5d05dd7fe2fdd13cff7c4a62f22109f1f95
staging: visornic: use skb_put_zero() instead of open-coded version

Replace an open-coded version of skb_put_zero() with a call to the helper.
This is a cleanup and is also useful for potentially adding KASAN
integration to SKBs in the future.

Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c