[PATCH v3] uacce: delete unneeded variable initialization
Kai Ye
yekai13 at huawei.com
Fri Mar 26 20:09:07 AEDT 2021
delete unneeded variable initialization.
Signed-off-by: Kai Ye <yekai13 at huawei.com>
---
Changes v2 -> v3:
re-edit the subject line.
drivers/misc/uacce/uacce.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/uacce/uacce.c b/drivers/misc/uacce/uacce.c
index d07af4e..94843e0 100644
--- a/drivers/misc/uacce/uacce.c
+++ b/drivers/misc/uacce/uacce.c
@@ -126,7 +126,7 @@ static int uacce_fops_open(struct inode *inode, struct file *filep)
{
struct uacce_device *uacce;
struct uacce_queue *q;
- int ret = 0;
+ int ret;
uacce = xa_load(&uacce_xa, iminor(inode));
if (!uacce)
--
2.8.1
More information about the Linux-accelerators
mailing list