]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
caif_virtio: Remove redundant initialization of variable err
authorJing Xiangfeng <jingxiangfeng@huawei.com>
Wed, 30 Sep 2020 01:29:54 +0000 (09:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Oct 2020 01:46:16 +0000 (18:46 -0700)
After commit a8c7687bf216 ("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 <jingxiangfeng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_virtio.c

index 80ea2e913c2b34756664398931ea0a034e6c9a3e..47a6d62b7511196b7d657e5222f787c841306801 100644 (file)
@@ -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);