From: Danny Kukawka Date: Mon, 30 Jan 2012 22:00:11 +0000 (+0100) Subject: hdaps: trivial fix for -Wuninitialized X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a938406b768936f6275b18360ecb44624a80deb1;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git hdaps: trivial fix for -Wuninitialized Trivial fix for some -Wuninitialized compiler warnings. Signed-off-by: Danny Kukawka Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/hdaps.c b/drivers/platform/x86/hdaps.c index 2fdacc23cf7b..7387f97a2941 100644 --- a/drivers/platform/x86/hdaps.c +++ b/drivers/platform/x86/hdaps.c @@ -379,7 +379,7 @@ static ssize_t hdaps_temp1_show(struct device *dev, int ret; ret = hdaps_readb_one(HDAPS_PORT_TEMP1, &temp); - if (ret < 0) + if (ret) return ret; return sprintf(buf, "%u\n", temp); @@ -392,7 +392,7 @@ static ssize_t hdaps_temp2_show(struct device *dev, int ret; ret = hdaps_readb_one(HDAPS_PORT_TEMP2, &temp); - if (ret < 0) + if (ret) return ret; return sprintf(buf, "%u\n", temp);