All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform/x86: alienware-wmi: printing the wrong error code
@ 2019-04-24  9:44 Dan Carpenter
  2019-04-24 12:43 ` Mario.Limonciello
  2019-05-06 12:23 ` Andy Shevchenko
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2019-04-24  9:44 UTC (permalink / raw)
  To: kernel-janitors

The "out_data" variable is uninitialized at the point.  Originally, this
used to print "status" instead and that seems like the correct thing to
print.

Fixes: bc2ef884320b ("alienware-wmi: For WMAX HDMI method, introduce a way to query HDMI cable status")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
 drivers/platform/x86/alienware-wmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform/x86/alienware-wmi.c
index c0d1555735cd..83fd7677af24 100644
--- a/drivers/platform/x86/alienware-wmi.c
+++ b/drivers/platform/x86/alienware-wmi.c
@@ -587,7 +587,7 @@ static ssize_t show_hdmi_source(struct device *dev,
 			return scnprintf(buf, PAGE_SIZE,
 					 "input [gpu] unknown\n");
 	}
-	pr_err("alienware-wmi: unknown HDMI source status: %d\n", out_data);
+	pr_err("alienware-wmi: unknown HDMI source status: %u\n", status);
 	return scnprintf(buf, PAGE_SIZE, "input gpu [unknown]\n");
 }
 
-- 
2.18.0

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

* Re: [PATCH] platform/x86: alienware-wmi: printing the wrong error code
  2019-04-24  9:44 [PATCH] platform/x86: alienware-wmi: printing the wrong error code Dan Carpenter
@ 2019-04-24 12:43 ` Mario.Limonciello
  2019-05-06 12:23 ` Andy Shevchenko
  1 sibling, 0 replies; 3+ messages in thread
From: Mario.Limonciello @ 2019-04-24 12:43 UTC (permalink / raw)
  To: kernel-janitors

>Fixes: bc2ef884320b ("alienware-wmi: For WMAX HDMI method, introduce a way to query HDMI cable status")
>Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>---
> drivers/platform/x86/alienware-wmi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform/x86/alienware-wmi.c
>index c0d1555735cd..83fd7677af24 100644
>--- a/drivers/platform/x86/alienware-wmi.c
>+++ b/drivers/platform/x86/alienware-wmi.c
>@@ -587,7 +587,7 @@ static ssize_t show_hdmi_source(struct device *dev,
>                        return scnprintf(buf, PAGE_SIZE,
>                                         "input [gpu] unknown\n");
>        }
>-       pr_err("alienware-wmi: unknown HDMI source status: %d\n", out_data);
>+       pr_err("alienware-wmi: unknown HDMI source status: %u\n", status);
>        return scnprintf(buf, PAGE_SIZE, "input gpu [unknown]\n");
> }
>
>--
>2.18.0

Yes, thanks.
Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>

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

* Re: [PATCH] platform/x86: alienware-wmi: printing the wrong error code
  2019-04-24  9:44 [PATCH] platform/x86: alienware-wmi: printing the wrong error code Dan Carpenter
  2019-04-24 12:43 ` Mario.Limonciello
@ 2019-05-06 12:23 ` Andy Shevchenko
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2019-05-06 12:23 UTC (permalink / raw)
  To: kernel-janitors

On Wed, Apr 24, 2019 at 3:43 PM <Mario.Limonciello@dell.com> wrote:
>
> >Fixes: bc2ef884320b ("alienware-wmi: For WMAX HDMI method, introduce a way to query HDMI cable status")
> >Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

Pushed to my review and testing queue, thanks!


> >---
> > drivers/platform/x86/alienware-wmi.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> >diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform/x86/alienware-wmi.c
> >index c0d1555735cd..83fd7677af24 100644
> >--- a/drivers/platform/x86/alienware-wmi.c
> >+++ b/drivers/platform/x86/alienware-wmi.c
> >@@ -587,7 +587,7 @@ static ssize_t show_hdmi_source(struct device *dev,
> >                        return scnprintf(buf, PAGE_SIZE,
> >                                         "input [gpu] unknown\n");
> >        }
> >-       pr_err("alienware-wmi: unknown HDMI source status: %d\n", out_data);
> >+       pr_err("alienware-wmi: unknown HDMI source status: %u\n", status);
> >        return scnprintf(buf, PAGE_SIZE, "input gpu [unknown]\n");
> > }
> >
> >--
> >2.18.0
>
> Yes, thanks.
> Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>
>


-- 
With Best Regards,
Andy Shevchenko

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

end of thread, other threads:[~2019-05-06 12:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-24  9:44 [PATCH] platform/x86: alienware-wmi: printing the wrong error code Dan Carpenter
2019-04-24 12:43 ` Mario.Limonciello
2019-05-06 12:23 ` Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.