diff for duplicates of <YA6FSxjBGVtRgT+Z@mwanda> diff --git a/a/1.txt b/N1/1.txt index 20be2c5..deb714e 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,4 +1,4 @@ -The "mode_index = ARRAY_SIZE(ov5648_modes)" check ensures that we +The "mode_index == ARRAY_SIZE(ov5648_modes)" check ensures that we exited the loop via a break statement so we know that "mode" must be valid. Delete this unnecessary NULL check. @@ -15,8 +15,8 @@ index 609aa67b54ce..b3864be33df2 100644 } } -- if (mode_index = ARRAY_SIZE(ov5648_modes) || !mode) -+ if (mode_index = ARRAY_SIZE(ov5648_modes)) +- if (mode_index == ARRAY_SIZE(ov5648_modes) || !mode) ++ if (mode_index == ARRAY_SIZE(ov5648_modes)) return -EINVAL; switch (interval_enum->code) { diff --git a/a/content_digest b/N1/content_digest index 5d03e0a..c64d90e 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Dan Carpenter <dan.carpenter@oracle.com>\0" "Subject\0[PATCH] media: i2c: ov5648: remove unnecessary NULL check\0" - "Date\0Mon, 25 Jan 2021 08:46:03 +0000\0" + "Date\0Mon, 25 Jan 2021 11:46:03 +0300\0" "To\0Mauro Carvalho Chehab <mchehab@kernel.org>" " Paul Kocialkowski <paul.kocialkowski@bootlin.com>\0" "Cc\0Sakari Ailus <sakari.ailus@linux.intel.com>" @@ -8,7 +8,7 @@ " kernel-janitors@vger.kernel.org\0" "\00:1\0" "b\0" - "The \"mode_index = ARRAY_SIZE(ov5648_modes)\" check ensures that we\n" + "The \"mode_index == ARRAY_SIZE(ov5648_modes)\" check ensures that we\n" "exited the loop via a break statement so we know that \"mode\" must\n" "be valid. Delete this unnecessary NULL check.\n" "\n" @@ -25,12 +25,12 @@ " \t\t}\n" " \t}\n" " \n" - "-\tif (mode_index = ARRAY_SIZE(ov5648_modes) || !mode)\n" - "+\tif (mode_index = ARRAY_SIZE(ov5648_modes))\n" + "-\tif (mode_index == ARRAY_SIZE(ov5648_modes) || !mode)\n" + "+\tif (mode_index == ARRAY_SIZE(ov5648_modes))\n" " \t\treturn -EINVAL;\n" " \n" " \tswitch (interval_enum->code) {\n" "-- \n" 2.29.2 -7c67848c5cb087cd6a7cc4bbbc0435e64381c904ef4ae86acd988df6c4a30840 +4f39a813478c9eae6c43b65fb53dec2fa5761abe0ade431e0235dc542d28e7ec
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.