]> 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)
commit6c36eac1810ef011d20b91b357947cf9ee96713a
treed2ecff3e6d04dc58841a3ac8aab55b291bd8bab1
parent3c7a91843d1b24e6cac42e19a8776f4221d5e358
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 <jingxiangfeng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_virtio.c