From: Kai Ye yekai13@huawei.com
mainline inclusion from mainline-v5.13-rc1 commit f20b2c2a07f88c9a7532578674a60e501a07b839 category: bugfix bugzilla: 173981 CVE: NA
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?i...
----------------------------------------------------------------------
delete unneeded variable initialization.
Signed-off-by: Kai Ye yekai13@huawei.com Link: https://lore.kernel.org/r/1616749747-3882-1-git-send-email-yekai13@huawei.co... Signed-off-by: Greg Kroah-Hartman gregkh@linuxfoundation.org Signed-off-by: Mingqiang Ling lingmingqiang@huawei.com Signed-off-by: Zheng Zengkai zhengzengkai@huawei.com --- 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 6db7a98486ec..bae18ef03dcb 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)