* [PATCH v2] uacce: delete not be needed variable initialization
@ 2021-03-25 7:18 Kai Ye
2021-03-25 7:26 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Kai Ye @ 2021-03-25 7:18 UTC (permalink / raw)
To: gregkh, linux-accelerators, linux-kernel, linuxarm, zhangfei.gao,
wangzhou1, yekai13
delete not be needed variable initialization.
Signed-off-by: Kai Ye <yekai13@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 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] uacce: delete not be needed variable initialization
2021-03-25 7:18 [PATCH v2] uacce: delete not be needed variable initialization Kai Ye
@ 2021-03-25 7:26 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2021-03-25 7:26 UTC (permalink / raw)
To: Kai Ye
Cc: linux-accelerators, linux-kernel, linuxarm, zhangfei.gao, wangzhou1
On Thu, Mar 25, 2021 at 03:18:49PM +0800, Kai Ye wrote:
> delete not be needed variable initialization.
I am sorry, but I can not parse this sentence. Can you try resending
this with a better description?
> Signed-off-by: Kai Ye <yekai13@huawei.com>
> ---
> drivers/misc/uacce/uacce.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
If this is a v2, you have to list below the --- line what changed from
previous versions, right? Please do so when you send a v3.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-25 7:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-25 7:18 [PATCH v2] uacce: delete not be needed variable initialization Kai Ye
2021-03-25 7:26 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).