From: Kees Bakker <kees@ijzerbout.nl>
To: Gaston Gonzalez <gascoar@gmail.com>, linux-staging@lists.linux.dev
Cc: dpenkler@gmail.com, gregkh@linuxfoundation.org, arnd@arndb.de,
dan.carpenter@oracle.com, ajithpv.linux@gmail.com,
roheetchavan@gmail.com, niharchaithanya@gmail.com,
eleanor15x@gmail.com, everestkc@everestkc.com.np,
skhan@linuxfoundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/5] staging: gpib: tnt4882: remove unused variable
Date: Fri, 7 Feb 2025 21:18:45 +0100 [thread overview]
Message-ID: <3753eb61-e198-4f4c-97d8-4634c1b8165d@ijzerbout.nl> (raw)
In-Reply-To: <20250207150427.153982-9-gascoar@gmail.com>
Op 07-02-2025 om 16:04 schreef Gaston Gonzalez:
> Remove unused variable 'retval' in function 'tnt4882_update_status'
>
> This change removes the following warning:
>
> warning: variable ‘retval’ set but not used [-Wunused-but-set-variable]
>
> Signed-off-by: Gaston Gonzalez <gascoar@gmail.com>
> ---
> drivers/staging/gpib/tnt4882/tnt4882_gpib.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/staging/gpib/tnt4882/tnt4882_gpib.c b/drivers/staging/gpib/tnt4882/tnt4882_gpib.c
> index 2e1c3cbebaca..a681bf559b46 100644
> --- a/drivers/staging/gpib/tnt4882/tnt4882_gpib.c
> +++ b/drivers/staging/gpib/tnt4882/tnt4882_gpib.c
> @@ -704,12 +704,10 @@ static unsigned int tnt4882_update_status(gpib_board_t *board, unsigned int clea
> {
> unsigned long flags;
> u8 line_status;
> - unsigned int retval;
> struct tnt4882_priv *priv = board->private_data;
>
> spin_lock_irqsave(&board->spinlock, flags);
> board->status &= ~clear_mask;
> - retval = nec7210_update_status_nolock(board, &priv->nec7210_priv);
You cannot remove a function call just like that. At least, not without
describing that
it is OK to do so.
> /* set / clear SRQ state since it is not cleared by interrupt */
> line_status = tnt_readb(priv, BSR);
> if (line_status & BCSR_SRQ_BIT)
next prev parent reply other threads:[~2025-02-07 20:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-07 15:04 [PATCH 0/5] staging: gpib: remove unused variables Gaston Gonzalez
2025-02-07 15:04 ` [PATCH 1/5] staging: gpib: cb7210: remove unused variable Gaston Gonzalez
2025-02-07 15:04 ` [PATCH 2/5] staging: gpib: eastwood: " Gaston Gonzalez
2025-02-07 15:04 ` [PATCH 3/5] staging: gpib: ni_usb: " Gaston Gonzalez
2025-02-07 19:46 ` Kees Bakker
2025-02-07 21:07 ` Gaston Gonzalez
2025-02-07 15:04 ` [PATCH 4/5] staging: gpib: tnt4882: " Gaston Gonzalez
2025-02-07 20:18 ` Kees Bakker [this message]
2025-02-07 21:16 ` Gaston Gonzalez
2025-02-07 15:04 ` [PATCH 5/5] staging: gpib: ines: " Gaston Gonzalez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3753eb61-e198-4f4c-97d8-4634c1b8165d@ijzerbout.nl \
--to=kees@ijzerbout.nl \
--cc=ajithpv.linux@gmail.com \
--cc=arnd@arndb.de \
--cc=dan.carpenter@oracle.com \
--cc=dpenkler@gmail.com \
--cc=eleanor15x@gmail.com \
--cc=everestkc@everestkc.com.np \
--cc=gascoar@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=niharchaithanya@gmail.com \
--cc=roheetchavan@gmail.com \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®