summaryrefslogtreecommitdiffstats
path: root/drivers/virt
diff options
context:
space:
mode:
authorGuo Zhengkui <guozhengkui@vivo.com>2022-04-26 10:33:13 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-26 12:50:31 +0200
commit4647769bab901562b1d3aa6ceb640a4886b0f277 (patch)
tree925cc5444c7446bcb25a7e36b58105945540c209 /drivers/virt
parentVMCI: Add support for ARM64 (diff)
downloadlinux-4647769bab901562b1d3aa6ceb640a4886b0f277.tar.xz
linux-4647769bab901562b1d3aa6ceb640a4886b0f277.zip
drivers/virt/fsl_hypervisor: remove unneeded `ret` variable in `fsl_hv_open()`
Fix the following coccicheck warning: drivers/virt/fsl_hypervisor.c:662:5-8: Unneeded variable: "ret". Return "0" on line 679. Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com> Link: https://lore.kernel.org/r/20220426083315.9551-1-guozhengkui@vivo.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/virt')
-rw-r--r--drivers/virt/fsl_hypervisor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/virt/fsl_hypervisor.c b/drivers/virt/fsl_hypervisor.c
index e49bec8bc8a4..07035249a5e1 100644
--- a/drivers/virt/fsl_hypervisor.c
+++ b/drivers/virt/fsl_hypervisor.c
@@ -659,7 +659,6 @@ static int fsl_hv_open(struct inode *inode, struct file *filp)
{
struct doorbell_queue *dbq;
unsigned long flags;
- int ret = 0;
dbq = kzalloc(sizeof(struct doorbell_queue), GFP_KERNEL);
if (!dbq) {
@@ -676,7 +675,7 @@ static int fsl_hv_open(struct inode *inode, struct file *filp)
filp->private_data = dbq;
- return ret;
+ return 0;
}
/*