]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - samples/bpf/tracex1_kern.c
Merge tag 'nfc-next-4.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo...
[mirror_ubuntu-hirsute-kernel.git] / samples / bpf / tracex1_kern.c
index 3f450a8fa1f3487b2cf2d9b261f63dc3d25f6599..107da148820fc6cdaadcd6e55ab38b8fa78015b5 100644 (file)
@@ -23,16 +23,14 @@ int bpf_prog1(struct pt_regs *ctx)
        /* attaches to kprobe netif_receive_skb,
         * looks for packets on loobpack device and prints them
         */
-       char devname[IFNAMSIZ] = {};
+       char devname[IFNAMSIZ];
        struct net_device *dev;
        struct sk_buff *skb;
        int len;
 
        /* non-portable! works for the given kernel only */
        skb = (struct sk_buff *) PT_REGS_PARM1(ctx);
-
        dev = _(skb->dev);
-
        len = _(skb->len);
 
        bpf_probe_read(devname, sizeof(devname), dev->name);