public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] char: applicom: Remove redundant ret variable in ac_read function
@ 2024-10-09  6:32 Zhu Jun
  2024-10-09  6:47 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Zhu Jun @ 2024-10-09  6:32 UTC (permalink / raw)
  To: arnd; +Cc: gregkh, linux-kernel, zhujun2

Removed the unused variable 'ret' from the ac_read function

Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
---
 drivers/char/applicom.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/char/applicom.c b/drivers/char/applicom.c
index 9fed9706d9cd..17ff89b15f56 100644
--- a/drivers/char/applicom.c
+++ b/drivers/char/applicom.c
@@ -539,7 +539,6 @@ static ssize_t ac_read (struct file *filp, char __user *buf, size_t count, loff_
 	unsigned long flags;
 	unsigned int i;
 	unsigned char tmp;
-	int ret = 0;
 	DECLARE_WAITQUEUE(wait, current);
 #ifdef DEBUG
 	int loopcount=0;
@@ -570,7 +569,7 @@ static ssize_t ac_read (struct file *filp, char __user *buf, size_t count, loff_
 
 				/* Got a packet for us */
 				memset(&st_loc, 0, sizeof(st_loc));
-				ret = do_ac_read(i, buf, &st_loc, &mailbox);
+				do_ac_read(i, buf, &st_loc, &mailbox);
 				spin_unlock_irqrestore(&apbs[i].mutex, flags);
 				set_current_state(TASK_RUNNING);
 				remove_wait_queue(&FlagSleepRec, &wait);
-- 
2.17.1




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

* Re: [PATCH] char: applicom: Remove redundant ret variable in ac_read function
  2024-10-09  6:32 [PATCH] char: applicom: Remove redundant ret variable in ac_read function Zhu Jun
@ 2024-10-09  6:47 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2024-10-09  6:47 UTC (permalink / raw)
  To: Zhu Jun; +Cc: arnd, linux-kernel

On Tue, Oct 08, 2024 at 11:32:19PM -0700, Zhu Jun wrote:
> Removed the unused variable 'ret' from the ac_read function
> 
> Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
> ---
>  drivers/char/applicom.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/char/applicom.c b/drivers/char/applicom.c
> index 9fed9706d9cd..17ff89b15f56 100644
> --- a/drivers/char/applicom.c
> +++ b/drivers/char/applicom.c
> @@ -539,7 +539,6 @@ static ssize_t ac_read (struct file *filp, char __user *buf, size_t count, loff_
>  	unsigned long flags;
>  	unsigned int i;
>  	unsigned char tmp;
> -	int ret = 0;
>  	DECLARE_WAITQUEUE(wait, current);
>  #ifdef DEBUG
>  	int loopcount=0;
> @@ -570,7 +569,7 @@ static ssize_t ac_read (struct file *filp, char __user *buf, size_t count, loff_
>  
>  				/* Got a packet for us */
>  				memset(&st_loc, 0, sizeof(st_loc));
> -				ret = do_ac_read(i, buf, &st_loc, &mailbox);
> +				do_ac_read(i, buf, &st_loc, &mailbox);
>  				spin_unlock_irqrestore(&apbs[i].mutex, flags);
>  				set_current_state(TASK_RUNNING);
>  				remove_wait_queue(&FlagSleepRec, &wait);
> -- 
> 2.17.1
> 

Is there some reason you are ignoring our emails?  I already responded
to this patch when you sent it yesterday, why did you send it again
today with only the subject line changed a tiny bit?

I think you need to work with someone else first to get some more
experience with kernel development before sending out any more changes,
as this is not an acceptable way to work with our community, sorry.

greg k-h

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

end of thread, other threads:[~2024-10-09  6:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-09  6:32 [PATCH] char: applicom: Remove redundant ret variable in ac_read function Zhu Jun
2024-10-09  6:47 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox