]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbca04e9a762c75c4b1af58135bcb51b3d3a4f6f8
treed2ecff3e6d04dc58841a3ac8aab55b291bd8bab1
parenta5d1b83a747bfe762f9055080963549e18bb0854
caif_virtio: Remove redundant initialization of variable err

After commit 60388421b025 ("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