diff for duplicates of <20071018133744.GC3526@jupiter.solarsys.private> diff --git a/a/1.txt b/N1/1.txt index c5dc3c2..420d78d 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -8,7 +8,7 @@ Hi: > > const char *buf, size_t count) > > { > > ... -> > if (val != 0 || val != 1 || data->kind = f75373) +> > if (val != 0 || val != 1 || data->kind == f75373) > > return -EINVAL; > > ... > > @@ -32,8 +32,8 @@ Hi: > int val = simple_strtoul(buf, NULL, 10); > u8 conf = 0; > -> - if (val != 0 || val != 1 || data->kind = f75373) -> + if (!(val = 0 || val = 1 ) || data->kind = f75373) +> - if (val != 0 || val != 1 || data->kind == f75373) +> + if (!(val == 0 || val == 1 ) || data->kind == f75373) > return -EINVAL; > > mutex_lock(&data->update_lock); @@ -61,8 +61,8 @@ index 13a0413..59a3470 100644 int val = simple_strtoul(buf, NULL, 10); u8 conf = 0; -- if (val != 0 || val != 1 || data->kind = f75373) -+ if (!(val = 0 || val = 1) || data->kind = f75373) +- if (val != 0 || val != 1 || data->kind == f75373) ++ if (!(val == 0 || val == 1) || data->kind == f75373) return -EINVAL; mutex_lock(&data->update_lock); @@ -72,9 +72,3 @@ Thanks & regards, -- Mark M. Hoffman mhoffman@lightlink.com - - -_______________________________________________ -lm-sensors mailing list -lm-sensors@lm-sensors.org -http://lists.lm-sensors.org/mailman/listinfo/lm-sensors diff --git a/a/content_digest b/N1/content_digest index 33f4b63..3e8fefa 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,8 +1,8 @@ "ref\020071017195439.GD3778@stusta.de\0" "ref\020071017204508.GA32110@kos.to\0" "From\0Mark M. Hoffman <mhoffman@lightlink.com>\0" - "Subject\0Re: [lm-sensors] hwmon/f75375s.c: buggy if()\0" - "Date\0Thu, 18 Oct 2007 13:37:44 +0000\0" + "Subject\0Re: hwmon/f75375s.c: buggy if()\0" + "Date\0Thu, 18 Oct 2007 09:37:44 -0400\0" "To\0Riku Voipio <riku.voipio@iki.fi>\0" "Cc\0Adrian Bunk <bunk@kernel.org>" lm-sensors@lm-sensors.org @@ -19,7 +19,7 @@ "> > const char *buf, size_t count)\n" "> > {\n" "> > ...\n" - "> > if (val != 0 || val != 1 || data->kind = f75373)\n" + "> > if (val != 0 || val != 1 || data->kind == f75373)\n" "> > return -EINVAL;\n" "> > ...\n" "> > \n" @@ -43,8 +43,8 @@ "> int val = simple_strtoul(buf, NULL, 10);\n" "> u8 conf = 0;\n" "> \n" - "> - if (val != 0 || val != 1 || data->kind = f75373)\n" - "> + if (!(val = 0 || val = 1 ) || data->kind = f75373)\n" + "> - if (val != 0 || val != 1 || data->kind == f75373)\n" + "> + if (!(val == 0 || val == 1 ) || data->kind == f75373)\n" "> return -EINVAL;\n" "> \n" "> mutex_lock(&data->update_lock);\n" @@ -72,8 +72,8 @@ " \tint val = simple_strtoul(buf, NULL, 10);\n" " \tu8 conf = 0;\n" " \n" - "-\tif (val != 0 || val != 1 || data->kind = f75373)\n" - "+\tif (!(val = 0 || val = 1) || data->kind = f75373)\n" + "-\tif (val != 0 || val != 1 || data->kind == f75373)\n" + "+\tif (!(val == 0 || val == 1) || data->kind == f75373)\n" " \t\treturn -EINVAL;\n" " \n" " \tmutex_lock(&data->update_lock);\n" @@ -82,12 +82,6 @@ "\n" "-- \n" "Mark M. Hoffman\n" - "mhoffman@lightlink.com\n" - "\n" - "\n" - "_______________________________________________\n" - "lm-sensors mailing list\n" - "lm-sensors@lm-sensors.org\n" - http://lists.lm-sensors.org/mailman/listinfo/lm-sensors + mhoffman@lightlink.com -1cd162b6d38a224918ef4dc55049303c6780116c8226a077e9ed0dd46c8fb83d +d27f3778082f10a5865c0b8eac53adaf8b0d5f15f5036bef7eb3dfa0d22584e0
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.