diff for duplicates of <20210723054609.15033-2-psampat@linux.ibm.com> diff --git a/a/1.txt b/N1/1.txt index 91f3c87..5c08350 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -241,7 +241,7 @@ index 000000000000..84ddce52e519 + int ret = 0; + + t_buf = kmalloc(MAX_BUF_SZ, GFP_KERNEL); -+ if (t_buf = NULL) ++ if (t_buf == NULL) + return -ENOMEM; + + ret = plpar_hcall_norets(H_GET_ENERGY_SCALE_INFO, ESI_FLAGS_SINGLE, @@ -281,7 +281,7 @@ index 000000000000..84ddce52e519 + int ret = 0; + + t_buf = kmalloc(MAX_BUF_SZ, GFP_KERNEL); -+ if (t_buf = NULL) ++ if (t_buf == NULL) + return -ENOMEM; + + ret = plpar_hcall_norets(H_GET_ENERGY_SCALE_INFO, ESI_FLAGS_SINGLE, @@ -323,7 +323,7 @@ index 000000000000..84ddce52e519 + int ret = 0; + + t_buf = kmalloc(MAX_BUF_SZ, GFP_KERNEL); -+ if (t_buf = NULL) ++ if (t_buf == NULL) + return -ENOMEM; + + ret = plpar_hcall_norets(H_GET_ENERGY_SCALE_INFO, ESI_FLAGS_SINGLE, @@ -396,7 +396,7 @@ index 000000000000..84ddce52e519 + return -ENXIO; + + esi_buf = kmalloc(MAX_BUF_SZ, GFP_KERNEL); -+ if (esi_buf = NULL) ++ if (esi_buf == NULL) + return -ENOMEM; + /* + * hcall( @@ -451,12 +451,12 @@ index 000000000000..84ddce52e519 + + pgs[idx].pg.name = kasprintf(GFP_KERNEL, "%lld", + be64_to_cpu(esi_attrs[idx].id)); -+ if (pgs[idx].pg.name = NULL) { ++ if (pgs[idx].pg.name == NULL) { + goto out_pgattrs; + } + /* Do not add the value description if it does not exist */ + if (strnlen(esi_attrs[idx].value_desc, -+ sizeof(esi_attrs[idx].value_desc)) = 0) ++ sizeof(esi_attrs[idx].value_desc)) == 0) + show_val_desc = false; + + if (add_attr_group(be64_to_cpu(esi_attrs[idx].id), &pgs[idx], diff --git a/a/content_digest b/N1/content_digest index 6968f84..ce575ea 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020210723054609.15033-1-psampat@linux.ibm.com\0" "From\0Pratik R. Sampat <psampat@linux.ibm.com>\0" "Subject\0[PATCH v7 1/1] powerpc/pseries: Interface to represent PAPR firmware attributes\0" - "Date\0Fri, 23 Jul 2021 05:58:09 +0000\0" + "Date\0Fri, 23 Jul 2021 11:16:09 +0530\0" "To\0mpe@ellerman.id.au" benh@kernel.crashing.org paulus@samba.org @@ -257,7 +257,7 @@ "+\tint ret = 0;\n" "+\n" "+\tt_buf = kmalloc(MAX_BUF_SZ, GFP_KERNEL);\n" - "+\tif (t_buf = NULL)\n" + "+\tif (t_buf == NULL)\n" "+\t\treturn -ENOMEM;\n" "+\n" "+\tret = plpar_hcall_norets(H_GET_ENERGY_SCALE_INFO, ESI_FLAGS_SINGLE,\n" @@ -297,7 +297,7 @@ "+\tint ret = 0;\n" "+\n" "+\tt_buf = kmalloc(MAX_BUF_SZ, GFP_KERNEL);\n" - "+\tif (t_buf = NULL)\n" + "+\tif (t_buf == NULL)\n" "+\t\treturn -ENOMEM;\n" "+\n" "+\tret = plpar_hcall_norets(H_GET_ENERGY_SCALE_INFO, ESI_FLAGS_SINGLE,\n" @@ -339,7 +339,7 @@ "+\tint ret = 0;\n" "+\n" "+\tt_buf = kmalloc(MAX_BUF_SZ, GFP_KERNEL);\n" - "+\tif (t_buf = NULL)\n" + "+\tif (t_buf == NULL)\n" "+\t\treturn -ENOMEM;\n" "+\n" "+\tret = plpar_hcall_norets(H_GET_ENERGY_SCALE_INFO, ESI_FLAGS_SINGLE,\n" @@ -412,7 +412,7 @@ "+\t\treturn -ENXIO;\n" "+\n" "+\tesi_buf = kmalloc(MAX_BUF_SZ, GFP_KERNEL);\n" - "+\tif (esi_buf = NULL)\n" + "+\tif (esi_buf == NULL)\n" "+\t\treturn -ENOMEM;\n" "+\t/*\n" "+\t * hcall(\n" @@ -467,12 +467,12 @@ "+\n" "+\t\tpgs[idx].pg.name = kasprintf(GFP_KERNEL, \"%lld\",\n" "+\t\t\t\t\t be64_to_cpu(esi_attrs[idx].id));\n" - "+\t\tif (pgs[idx].pg.name = NULL) {\n" + "+\t\tif (pgs[idx].pg.name == NULL) {\n" "+\t\t\tgoto out_pgattrs;\n" "+\t\t}\n" "+\t\t/* Do not add the value description if it does not exist */\n" "+\t\tif (strnlen(esi_attrs[idx].value_desc,\n" - "+\t\t\t sizeof(esi_attrs[idx].value_desc)) = 0)\n" + "+\t\t\t sizeof(esi_attrs[idx].value_desc)) == 0)\n" "+\t\t\tshow_val_desc = false;\n" "+\n" "+\t\tif (add_attr_group(be64_to_cpu(esi_attrs[idx].id), &pgs[idx],\n" @@ -506,4 +506,4 @@ "-- \n" 2.31.1 -f9bf29ab65b4d8a2ccbb39af8fdb1e4b7b5efa8a3391734d9ca244165dc7910c +d8ce75dd0253fe22b67a6b0e278c70f4de050613262f4d5ce3637241eaa1e289
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.