]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/w1/slaves/w1_therm.c
W1: w1_therm.c is flagging 0C etc as invalid
[linux-2.6-omap-h63xx.git] / drivers / w1 / slaves / w1_therm.c
index feed89e733e4911b897f19fab5994377209b32fb..112f4ec59035424bc36b7251fcb6367c9bca7f77 100644 (file)
@@ -204,7 +204,7 @@ static ssize_t w1_therm_read_bin(struct kobject *kobj,
 
                                crc = w1_calc_crc8(rom, 8);
 
-                               if (rom[8] == crc && rom[0])
+                               if (rom[8] == crc)
                                        verdict = 1;
                        }
                }