From: Jing Xiangfeng Date: Wed, 30 Sep 2020 01:29:54 +0000 (+0800) Subject: caif_virtio: Remove redundant initialization of variable err X-Git-Tag: baikal/mips/sdk5.9~12462^2~92 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=6c36eac1810ef011d20b91b357947cf9ee96713a;p=kernel.git caif_virtio: Remove redundant initialization of variable err After commit 7da1a769c190 ("caif_virtio: Check that vringh_config is not null"), the variable err is being initialized with '-EINVAL' that is meaningless. So remove it. Signed-off-by: Jing Xiangfeng Signed-off-by: David S. Miller --- diff --git a/drivers/net/caif/caif_virtio.c b/drivers/net/caif/caif_virtio.c index 80ea2e913c2b3..47a6d62b75111 100644 --- a/drivers/net/caif/caif_virtio.c +++ b/drivers/net/caif/caif_virtio.c @@ -652,7 +652,7 @@ static int cfv_probe(struct virtio_device *vdev) const char *cfv_netdev_name = "cfvrt"; struct net_device *netdev; struct cfv_info *cfv; - int err = -EINVAL; + int err; netdev = alloc_netdev(sizeof(struct cfv_info), cfv_netdev_name, NET_NAME_UNKNOWN, cfv_netdev_setup);