From: Dan Carpenter Date: Wed, 24 Apr 2019 09:44:18 +0000 (+0300) Subject: platform/x86: alienware-wmi: printing the wrong error code X-Git-Tag: platform-drivers-x86-v5.2-1~7 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6d1f8b3d75419a8659ac916a1e9543bb3513a882;p=linux-platform-drivers-x86.git platform/x86: alienware-wmi: printing the wrong error code 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 Reviewed-by: Mario Limonciello Signed-off-by: Andy Shevchenko --- 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"); }