* [PATCH 3/3 V2] staging: gpib: Avoid unused variable warning
@ 2025-04-27 9:19 Dave Penkler
2025-04-28 5:35 ` Dan Carpenter
0 siblings, 1 reply; 3+ messages in thread
From: Dave Penkler @ 2025-04-27 9:19 UTC (permalink / raw)
To: gregkh, linux-staging, linux-kernel; +Cc: Dave Penkler
This addresses a warning produced by make W=1 with the configuration
parameter CONFIG_GPIB_PCMCIA=y
ines/ines_gpib.c:1115:28: warning: variable 'dev' set but not used [-Wunused-but-set-variable]
Remove the declaration and assignment of the unused variable.
Signed-off-by: Dave Penkler <dpenkler@gmail.com>
---
V1 -> V2
Remove the setting of the unused variable and say so in
the commit message
drivers/staging/gpib/ines/ines_gpib.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/staging/gpib/ines/ines_gpib.c b/drivers/staging/gpib/ines/ines_gpib.c
index a16219c0f7c8..c851fd014f48 100644
--- a/drivers/staging/gpib/ines/ines_gpib.c
+++ b/drivers/staging/gpib/ines/ines_gpib.c
@@ -1112,12 +1112,9 @@ static int ines_gpib_config_iteration(struct pcmcia_device *link, void *priv_dat
*/
static int ines_gpib_config(struct pcmcia_device *link)
{
- struct local_info *dev;
int retval;
void __iomem *virt;
- dev = link->priv;
-
retval = pcmcia_loop_config(link, &ines_gpib_config_iteration, NULL);
if (retval) {
dev_warn(&link->dev, "no configuration found\n");
--
2.49.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 3/3 V2] staging: gpib: Avoid unused variable warning
2025-04-27 9:19 [PATCH 3/3 V2] staging: gpib: Avoid unused variable warning Dave Penkler
@ 2025-04-28 5:35 ` Dan Carpenter
0 siblings, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2025-04-28 5:35 UTC (permalink / raw)
To: Dave Penkler; +Cc: gregkh, linux-staging, linux-kernel
On Sun, Apr 27, 2025 at 11:19:02AM +0200, Dave Penkler wrote:
> This addresses a warning produced by make W=1 with the configuration
> parameter CONFIG_GPIB_PCMCIA=y
>
> ines/ines_gpib.c:1115:28: warning: variable 'dev' set but not used [-Wunused-but-set-variable]
>
> Remove the declaration and assignment of the unused variable.
>
> Signed-off-by: Dave Penkler <dpenkler@gmail.com>
> ---
> V1 -> V2
> Remove the setting of the unused variable and say so in
> the commit message
You'll need to resend the whole patchset.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 0/3 V2] staging: gpib: ines driver fix and cleanup
@ 2025-05-02 7:21 Dave Penkler
2025-05-02 7:21 ` [PATCH 3/3 V2] staging: gpib: Avoid unused variable warning Dave Penkler
0 siblings, 1 reply; 3+ messages in thread
From: Dave Penkler @ 2025-05-02 7:21 UTC (permalink / raw)
To: gregkh, linux-staging, linux-kernel; +Cc: dan.carpenter, Dave Penkler
These patches address some outstanding issues with the ines driver.
The issue addressed by patch 1 was exposed after the entry points
were declared static (patch 2).
Patch 1: Fixes an invalid ifdef config identifier
Patch 2: Changes the driver entry points as static
Patch 3: Corrects an unused variable warning
Dave Penkler (3):
staging: gpib: Fix PCMCIA config identifier
staging: gpib: Declare driver entry points static
staging: gpib: Avoid unused variable warning
drivers/staging/gpib/ines/ines.h | 44 -------------
drivers/staging/gpib/ines/ines_gpib.c | 95 ++++++++++++++-------------
2 files changed, 48 insertions(+), 91 deletions(-)
--
Changes V1 => V2
Patch 3 did not remove the initialization of the unused variable.
Remove the asignmenst and say so in the commit message.
2.49.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 3/3 V2] staging: gpib: Avoid unused variable warning
2025-05-02 7:21 [PATCH 0/3 V2] staging: gpib: ines driver fix and cleanup Dave Penkler
@ 2025-05-02 7:21 ` Dave Penkler
0 siblings, 0 replies; 3+ messages in thread
From: Dave Penkler @ 2025-05-02 7:21 UTC (permalink / raw)
To: gregkh, linux-staging, linux-kernel; +Cc: dan.carpenter, Dave Penkler
This addresses a warning produced by make W=1 with the configuration
parameter CONFIG_GPIB_PCMCIA=y
ines/ines_gpib.c:1115:28: warning: variable 'dev' set but not used [-Wunused-but-set-variable]
Remove the declaration and assignment of the unused variable.
Signed-off-by: Dave Penkler <dpenkler@gmail.com>
---
V1 -> V2
Remove the setting of the unused variable and say so in
the commit message
drivers/staging/gpib/ines/ines_gpib.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/staging/gpib/ines/ines_gpib.c b/drivers/staging/gpib/ines/ines_gpib.c
index a16219c0f7c8..c851fd014f48 100644
--- a/drivers/staging/gpib/ines/ines_gpib.c
+++ b/drivers/staging/gpib/ines/ines_gpib.c
@@ -1112,12 +1112,9 @@ static int ines_gpib_config_iteration(struct pcmcia_device *link, void *priv_dat
*/
static int ines_gpib_config(struct pcmcia_device *link)
{
- struct local_info *dev;
int retval;
void __iomem *virt;
- dev = link->priv;
-
retval = pcmcia_loop_config(link, &ines_gpib_config_iteration, NULL);
if (retval) {
dev_warn(&link->dev, "no configuration found\n");
--
2.49.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-02 7:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-27 9:19 [PATCH 3/3 V2] staging: gpib: Avoid unused variable warning Dave Penkler
2025-04-28 5:35 ` Dan Carpenter
-- strict thread matches above, loose matches on Subject: below --
2025-05-02 7:21 [PATCH 0/3 V2] staging: gpib: ines driver fix and cleanup Dave Penkler
2025-05-02 7:21 ` [PATCH 3/3 V2] staging: gpib: Avoid unused variable warning Dave Penkler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox