WSL2-Linux-Kernel/drivers/net/caif
Julia Lawall 327cdedaf6 caif: delete unnecessary field initialization
On success, the function netdev_alloc_skb initializes the dev field of its
result to its first argument, so this doesn't have to be done in the
calling context.

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression skb,privn,e;
@@

skb = netdev_alloc_skb(privn,...);
... when strict
(
-skb->dev = privn;
|
?skb = e
)
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-02-17 00:29:23 -05:00
..
Kconfig caif: CAIF_VIRTIO should depend on HAS_DMA 2013-05-11 16:28:24 -07:00
Makefile Lots of virtio work which wasn't quite ready for last merge window. Plus 2013-05-02 14:14:04 -07:00
caif_hsi.c caif: Update Dmitry's email address. 2013-04-23 13:25:51 -04:00
caif_serial.c caif: delete unnecessary field initialization 2014-02-17 00:29:23 -05:00
caif_spi.c caif: delete unnecessary field initialization 2014-02-17 00:29:23 -05:00
caif_spi_slave.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
caif_virtio.c virtio: use size-based config accessors. 2013-10-17 10:55:37 +10:30