diff for duplicates of <20181121160615.23666-1-tiny.windzz@gmail.com> diff --git a/a/1.txt b/N1/1.txt index 7667ea5..4d243de 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -23,19 +23,19 @@ index 6cf3e9b0728f..4a27c0114d50 100644 const char *ms = of_get_property(ap, "mouse", NULL); if (keyb) { -- if (dp == of_find_node_by_path(keyb)) +- if (dp = of_find_node_by_path(keyb)) - return SU_PORT_KBD; + tmp = of_find_node_by_path(keyb); -+ if (tmp && dp == tmp){ ++ if (tmp && dp = tmp){ + rc = SU_PORT_KBD; + goto out; + } } if (ms) { -- if (dp == of_find_node_by_path(ms)) +- if (dp = of_find_node_by_path(ms)) - return SU_PORT_MS; + tmp = of_find_node_by_path(ms); -+ if (tmp && dp == tmp){ ++ if (tmp && dp = tmp){ + rc = SU_PORT_MS; + goto out; + } diff --git a/a/content_digest b/N1/content_digest index ec537c5..3969096 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Yangtao Li <tiny.windzz@gmail.com>\0" "Subject\0[PATCH] serial/sunsu: add missing of_node_put()\0" - "Date\0Wed, 21 Nov 2018 11:06:15 -0500\0" + "Date\0Wed, 21 Nov 2018 16:06:15 +0000\0" "To\0davem@davemloft.net" gregkh@linuxfoundation.org " jslaby@suse.com\0" @@ -35,19 +35,19 @@ " \t\tconst char *ms = of_get_property(ap, \"mouse\", NULL);\n" " \n" " \t\tif (keyb) {\n" - "-\t\t\tif (dp == of_find_node_by_path(keyb))\n" + "-\t\t\tif (dp = of_find_node_by_path(keyb))\n" "-\t\t\t\treturn SU_PORT_KBD;\n" "+\t\t\ttmp = of_find_node_by_path(keyb);\n" - "+\t\t\tif (tmp && dp == tmp){\n" + "+\t\t\tif (tmp && dp = tmp){\n" "+\t\t\t\trc = SU_PORT_KBD;\n" "+\t\t\t\tgoto out;\n" "+\t\t\t}\n" " \t\t}\n" " \t\tif (ms) {\n" - "-\t\t\tif (dp == of_find_node_by_path(ms))\n" + "-\t\t\tif (dp = of_find_node_by_path(ms))\n" "-\t\t\t\treturn SU_PORT_MS;\n" "+\t\t\ttmp = of_find_node_by_path(ms);\n" - "+\t\t\tif (tmp && dp == tmp){\n" + "+\t\t\tif (tmp && dp = tmp){\n" "+\t\t\t\trc = SU_PORT_MS;\n" "+\t\t\t\tgoto out;\n" "+\t\t\t}\n" @@ -64,4 +64,4 @@ "-- \n" 2.17.0 -200a15fe3fbd5904da5f831a89cf4c066dd47b90794fef9116cdeb3b9f94ff35 +84d4826c9a75723118f70752177753945dfdad07338c82ec863de282053945f2
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.