linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH linux-next] rpmsg: char: Remove the unneeded result variable
@ 2022-08-26  7:19 cgel.zte
  2022-08-26  7:40 ` Mukesh Ojha
  2022-08-31 16:46 ` Mathieu Poirier
  0 siblings, 2 replies; 5+ messages in thread
From: cgel.zte @ 2022-08-26  7:19 UTC (permalink / raw)
  To: bjorn.andersson
  Cc: mathieu.poirier, linux-remoteproc, linux-kernel, ye xingchen, Zeal Robot

From: ye xingchen <ye.xingchen@zte.com.cn>

Return the value rpmsg_chrdev_eptdev_add() directly instead of storing it
in another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
---
 drivers/rpmsg/rpmsg_char.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c
index 4f2189111494..0850ae34fb88 100644
--- a/drivers/rpmsg/rpmsg_char.c
+++ b/drivers/rpmsg/rpmsg_char.c
@@ -424,15 +424,12 @@ int rpmsg_chrdev_eptdev_create(struct rpmsg_device *rpdev, struct device *parent
 			       struct rpmsg_channel_info chinfo)
 {
 	struct rpmsg_eptdev *eptdev;
-	int ret;
 
 	eptdev = rpmsg_chrdev_eptdev_alloc(rpdev, parent);
 	if (IS_ERR(eptdev))
 		return PTR_ERR(eptdev);
 
-	ret = rpmsg_chrdev_eptdev_add(eptdev, chinfo);
-
-	return ret;
+	return rpmsg_chrdev_eptdev_add(eptdev, chinfo);
 }
 EXPORT_SYMBOL(rpmsg_chrdev_eptdev_create);
 
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH linux-next] rpmsg: char: Remove the unneeded result variable
  2022-08-26  7:19 [PATCH linux-next] rpmsg: char: Remove the unneeded result variable cgel.zte
@ 2022-08-26  7:40 ` Mukesh Ojha
  2022-08-31 16:46 ` Mathieu Poirier
  1 sibling, 0 replies; 5+ messages in thread
From: Mukesh Ojha @ 2022-08-26  7:40 UTC (permalink / raw)
  To: cgel.zte, bjorn.andersson
  Cc: mathieu.poirier, linux-remoteproc, linux-kernel, ye xingchen, Zeal Robot



On 8/26/2022 12:49 PM, cgel.zte@gmail.com wrote:
> From: ye xingchen <ye.xingchen@zte.com.cn>
> 
> Return the value rpmsg_chrdev_eptdev_add() directly instead of storing it
> in another redundant variable.
> 
> Reported-by: Zeal Robot <zealci@zte.com.cn>
> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
> ---
>   drivers/rpmsg/rpmsg_char.c | 5 +----
>   1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c
> index 4f2189111494..0850ae34fb88 100644
> --- a/drivers/rpmsg/rpmsg_char.c
> +++ b/drivers/rpmsg/rpmsg_char.c
> @@ -424,15 +424,12 @@ int rpmsg_chrdev_eptdev_create(struct rpmsg_device *rpdev, struct device *parent
>   			       struct rpmsg_channel_info chinfo)
>   {
>   	struct rpmsg_eptdev *eptdev;
> -	int ret;
>   
>   	eptdev = rpmsg_chrdev_eptdev_alloc(rpdev, parent);
>   	if (IS_ERR(eptdev))
>   		return PTR_ERR(eptdev);
>   
> -	ret = rpmsg_chrdev_eptdev_add(eptdev, chinfo);
> -
> -	return ret;
> +	return rpmsg_chrdev_eptdev_add(eptdev, chinfo);
>   }

LGTM.

Reviewed-by:Mukesh Ojha <quic_mojha@quicinc.com>

-Mukesh



>   EXPORT_SYMBOL(rpmsg_chrdev_eptdev_create);
>   

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH linux-next] rpmsg: char: Remove the unneeded result variable
  2022-08-26  7:19 [PATCH linux-next] rpmsg: char: Remove the unneeded result variable cgel.zte
  2022-08-26  7:40 ` Mukesh Ojha
@ 2022-08-31 16:46 ` Mathieu Poirier
  2022-09-01  5:32   ` cgel.zte
  1 sibling, 1 reply; 5+ messages in thread
From: Mathieu Poirier @ 2022-08-31 16:46 UTC (permalink / raw)
  To: cgel.zte
  Cc: bjorn.andersson, linux-remoteproc, linux-kernel, ye xingchen, Zeal Robot

Hi,

I am fine with the patch but I need to understand who is "cgel.zte" - are we
talking about a person or an automated bot.  In case of the former than an SoB
from that person needs to be on this patch.  If an automated bot, than that
needs to be changed to someone accountable for the code that can put an SoB on
the patch.

Thanks,
Mathieu

On Fri, Aug 26, 2022 at 07:19:54AM +0000, cgel.zte@gmail.com wrote:
> From: ye xingchen <ye.xingchen@zte.com.cn>
> 
> Return the value rpmsg_chrdev_eptdev_add() directly instead of storing it
> in another redundant variable.
> 
> Reported-by: Zeal Robot <zealci@zte.com.cn>
> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
> ---
>  drivers/rpmsg/rpmsg_char.c | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c
> index 4f2189111494..0850ae34fb88 100644
> --- a/drivers/rpmsg/rpmsg_char.c
> +++ b/drivers/rpmsg/rpmsg_char.c
> @@ -424,15 +424,12 @@ int rpmsg_chrdev_eptdev_create(struct rpmsg_device *rpdev, struct device *parent
>  			       struct rpmsg_channel_info chinfo)
>  {
>  	struct rpmsg_eptdev *eptdev;
> -	int ret;
>  
>  	eptdev = rpmsg_chrdev_eptdev_alloc(rpdev, parent);
>  	if (IS_ERR(eptdev))
>  		return PTR_ERR(eptdev);
>  
> -	ret = rpmsg_chrdev_eptdev_add(eptdev, chinfo);
> -
> -	return ret;
> +	return rpmsg_chrdev_eptdev_add(eptdev, chinfo);
>  }
>  EXPORT_SYMBOL(rpmsg_chrdev_eptdev_create);
>  
> -- 
> 2.25.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH linux-next] rpmsg: char: Remove the unneeded result variable
  2022-08-31 16:46 ` Mathieu Poirier
@ 2022-09-01  5:32   ` cgel.zte
  2022-09-02 19:32     ` Mathieu Poirier
  0 siblings, 1 reply; 5+ messages in thread
From: cgel.zte @ 2022-09-01  5:32 UTC (permalink / raw)
  To: mathieu.poirier
  Cc: bjorn.andersson, cgel.zte, linux-kernel, linux-remoteproc,
	ye.xingchen, --cc=zealci

Thank you for your reply.

In fact,‘cgel.zte@gmail.com’ is our company's public mail address, and ‘ye.xingchen@zte.com.cn’is my personal mail address in the company.‘ZTE’ is the name of company, and ‘CGEL’the name of our project team in company.

For some reason, the patchs needs to be reviewed by the company before it is sent out, and we have to use public mailboxes to send mails, because personal mailboxes are not allowed to send mails.

Because it is the patch I submitted, the mail about the patch will be sent to my personal mailbox through the public mailbox.

 
Thanks,
YE XINGCHEN

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH linux-next] rpmsg: char: Remove the unneeded result variable
  2022-09-01  5:32   ` cgel.zte
@ 2022-09-02 19:32     ` Mathieu Poirier
  0 siblings, 0 replies; 5+ messages in thread
From: Mathieu Poirier @ 2022-09-02 19:32 UTC (permalink / raw)
  To: cgel.zte
  Cc: bjorn.andersson, linux-kernel, linux-remoteproc, ye.xingchen,
	--cc=zealci

On Thu, Sep 01, 2022 at 05:32:31AM +0000, cgel.zte@gmail.com wrote:
> Thank you for your reply.
> 
> In fact,‘cgel.zte@gmail.com’ is our company's public mail address, and ‘ye.xingchen@zte.com.cn’is my personal mail address in the company.‘ZTE’ is the name of company, and ‘CGEL’the name of our project team in company.
> 
> For some reason, the patchs needs to be reviewed by the company before it is sent out, and we have to use public mailboxes to send mails, because personal mailboxes are not allowed to send mails.
> 
> Because it is the patch I submitted, the mail about the patch will be sent to my personal mailbox through the public mailbox.

Thank you for the clarification - I have applied your patch.

> 
>  
> Thanks,
> YE XINGCHEN

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-09-02 19:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-26  7:19 [PATCH linux-next] rpmsg: char: Remove the unneeded result variable cgel.zte
2022-08-26  7:40 ` Mukesh Ojha
2022-08-31 16:46 ` Mathieu Poirier
2022-09-01  5:32   ` cgel.zte
2022-09-02 19:32     ` Mathieu Poirier

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).