Skip to contentSkip to conversation

uio:remove unneeded variable ret

PATCH Superseded wangbo 2 participants 2 messages Jan 9, 2019 – Jan 22, 2019 Userspace I/O (UIO)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

wangbo

author
#0 lore raw

PATCH 1/1 uio:remove unneeded variable ret

In uio_dmem_genirq_open the variable ret is unneededw,remove it now.

---
 drivers/uio/uio_dmem_genirq.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/uio/uio_dmem_genirq.c +1 -2
index 003bada..2be7569 100644
@@ -47,7 +47,6 @@ static int uio_dmem_genirq_open(struct uio_info *info, struct inode *inode)
 {
 	struct uio_dmem_genirq_platdata *priv = info->priv;
 	struct uio_mem *uiomem;
-	int ret = 0;
 	int dmem_region = priv->dmem_region_start;
 
 	uiomem = &priv->uioinfo->mem[priv->dmem_region_start];
@@ -71,7 +70,7 @@ static int uio_dmem_genirq_open(struct uio_info *info, struct inode *inode)
 	mutex_unlock(&priv->alloc_lock);
 	/* Wait until the Runtime PM code has woken up the device */
 	pm_runtime_get_sync(&priv->pdev->dev);
-	return ret;
+	return 0;
 }
 
 static int uio_dmem_genirq_release(struct uio_info *info, struct inode *inode)
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 1 line · wangbo

In uio_dmem_genirq_open the variable ret is unneededw,remove it now.

Minor typo in this sentence :(

Quoted 2 lines

I need a "full" name for a patch to be able to be accepted.

thanks,

greg k-h