Просмотр исходного кода

hdaps: fix for -Wuninitialized

Trivial fix for some -Wuninitialized compiler warnings.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Danny Kukawka 14 лет назад
Родитель
Сommit
4087c471e7
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      drivers/platform/x86/hdaps.c

+ 2 - 2
drivers/platform/x86/hdaps.c

@@ -379,7 +379,7 @@ static ssize_t hdaps_temp1_show(struct device *dev,
 	int ret;
 	int ret;
 
 
 	ret = hdaps_readb_one(HDAPS_PORT_TEMP1, &temp);
 	ret = hdaps_readb_one(HDAPS_PORT_TEMP1, &temp);
-	if (ret < 0)
+	if (ret)
 		return ret;
 		return ret;
 
 
 	return sprintf(buf, "%u\n", temp);
 	return sprintf(buf, "%u\n", temp);
@@ -392,7 +392,7 @@ static ssize_t hdaps_temp2_show(struct device *dev,
 	int ret;
 	int ret;
 
 
 	ret = hdaps_readb_one(HDAPS_PORT_TEMP2, &temp);
 	ret = hdaps_readb_one(HDAPS_PORT_TEMP2, &temp);
-	if (ret < 0)
+	if (ret)
 		return ret;
 		return ret;
 
 
 	return sprintf(buf, "%u\n", temp);
 	return sprintf(buf, "%u\n", temp);