diff for duplicates of <1438760880.20978.2.camel@neuling.org> diff --git a/a/1.txt b/N1/1.txt index 7751b35..a7eb632 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,7 +1,7 @@ On Mon, 2015-07-27 at 00:18 +0300, Vladimir Zapolskiy wrote: > The sanity checks for overflow are not needed, because this is done on > caller side in fs/sysfs/file.c ->=20 +> > Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> > Cc: linuxppc-dev@lists.ozlabs.org > Cc: Ian Munsie <imunsie@au1.ibm.com> @@ -12,24 +12,22 @@ Acked-by: Michael Neuling <mikey@neuling.org> > --- > drivers/misc/cxl/sysfs.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) ->=20 +> > diff --git a/drivers/misc/cxl/sysfs.c b/drivers/misc/cxl/sysfs.c > index 31f38bc..87cd747 100644 > --- a/drivers/misc/cxl/sysfs.c > +++ b/drivers/misc/cxl/sysfs.c -> @@ -443,12 +443,7 @@ static ssize_t afu_read_config(struct file *filp, st= -ruct kobject *kobj, -> struct afu_config_record *cr =3D to_cr(kobj); -> struct cxl_afu *afu =3D to_cxl_afu(container_of(kobj->parent, struct de= -vice, kobj)); -> =20 -> - u64 i, j, val, size =3D afu->crs_len; +> @@ -443,12 +443,7 @@ static ssize_t afu_read_config(struct file *filp, struct kobject *kobj, +> struct afu_config_record *cr = to_cr(kobj); +> struct cxl_afu *afu = to_cxl_afu(container_of(kobj->parent, struct device, kobj)); +> +> - u64 i, j, val, size = afu->crs_len; > - > - if (off > size) > - return 0; > - if (off + count > size) -> - count =3D size - off; +> - count = size - off; > + u64 i, j, val; -> =20 -> for (i =3D 0; i < count;) { -> val =3D cxl_afu_cr_read64(afu, cr->cr, off & ~0x7); +> +> for (i = 0; i < count;) { +> val = cxl_afu_cr_read64(afu, cr->cr, off & ~0x7); diff --git a/a/content_digest b/N1/content_digest index 9163d18..ac4c38c 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -14,7 +14,7 @@ "On Mon, 2015-07-27 at 00:18 +0300, Vladimir Zapolskiy wrote:\n" "> The sanity checks for overflow are not needed, because this is done on\n" "> caller side in fs/sysfs/file.c\n" - ">=20\n" + "> \n" "> Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>\n" "> Cc: linuxppc-dev@lists.ozlabs.org\n" "> Cc: Ian Munsie <imunsie@au1.ibm.com>\n" @@ -25,26 +25,24 @@ "> ---\n" "> drivers/misc/cxl/sysfs.c | 7 +------\n" "> 1 file changed, 1 insertion(+), 6 deletions(-)\n" - ">=20\n" + "> \n" "> diff --git a/drivers/misc/cxl/sysfs.c b/drivers/misc/cxl/sysfs.c\n" "> index 31f38bc..87cd747 100644\n" "> --- a/drivers/misc/cxl/sysfs.c\n" "> +++ b/drivers/misc/cxl/sysfs.c\n" - "> @@ -443,12 +443,7 @@ static ssize_t afu_read_config(struct file *filp, st=\n" - "ruct kobject *kobj,\n" - "> \tstruct afu_config_record *cr =3D to_cr(kobj);\n" - "> \tstruct cxl_afu *afu =3D to_cxl_afu(container_of(kobj->parent, struct de=\n" - "vice, kobj));\n" - "> =20\n" - "> -\tu64 i, j, val, size =3D afu->crs_len;\n" + "> @@ -443,12 +443,7 @@ static ssize_t afu_read_config(struct file *filp, struct kobject *kobj,\n" + "> \tstruct afu_config_record *cr = to_cr(kobj);\n" + "> \tstruct cxl_afu *afu = to_cxl_afu(container_of(kobj->parent, struct device, kobj));\n" + "> \n" + "> -\tu64 i, j, val, size = afu->crs_len;\n" "> -\n" "> -\tif (off > size)\n" "> -\t\treturn 0;\n" "> -\tif (off + count > size)\n" - "> -\t\tcount =3D size - off;\n" + "> -\t\tcount = size - off;\n" "> +\tu64 i, j, val;\n" - "> =20\n" - "> \tfor (i =3D 0; i < count;) {\n" - "> \t\tval =3D cxl_afu_cr_read64(afu, cr->cr, off & ~0x7);" + "> \n" + "> \tfor (i = 0; i < count;) {\n" + "> \t\tval = cxl_afu_cr_read64(afu, cr->cr, off & ~0x7);" -4429279d71dc262363b3f2b9c6bc11b43025787f933e0764bd5311d7f27ee5a6 +684f750a66cebabafe820bd8602e9e3d20bf2d93854c4312c551011cb841517b
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.