diff for duplicates of <20121127173530.GF1059@elgon.mountain> diff --git a/a/1.txt b/N1/1.txt index 6f59b46..311c809 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -8,7 +8,7 @@ index 601d1ac1..759a40a 100644 +++ b/drivers/media/rc/rc-main.c @@ -890,7 +892,8 @@ static ssize_t store_protocols(struct device *device, - if (i = ARRAY_SIZE(proto_names)) { + if (i == ARRAY_SIZE(proto_names)) { IR_dprintk(1, "Unknown protocol: '%s'\n", tmp); - return -EINVAL; + ret = -EINVAL; diff --git a/a/content_digest b/N1/content_digest index 16b15db..86faff5 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Dan Carpenter <dan.carpenter@oracle.com>\0" "Subject\0[patch 2/2] [media] rc: unlock on error in store_protocols()\0" - "Date\0Tue, 27 Nov 2012 17:35:30 +0000\0" + "Date\0Tue, 27 Nov 2012 20:35:30 +0300\0" "To\0Mauro Carvalho Chehab <mchehab@redhat.com>\0" "Cc\0Douglas Bagnall <douglas@paradise.net.nz>" " David H\303\244rdeman <david@hardeman.nu>" @@ -20,7 +20,7 @@ "+++ b/drivers/media/rc/rc-main.c\n" "@@ -890,7 +892,8 @@ static ssize_t store_protocols(struct device *device,\n" " \n" - " \t\tif (i = ARRAY_SIZE(proto_names)) {\n" + " \t\tif (i == ARRAY_SIZE(proto_names)) {\n" " \t\t\tIR_dprintk(1, \"Unknown protocol: '%s'\\n\", tmp);\n" "-\t\t\treturn -EINVAL;\n" "+\t\t\tret = -EINVAL;\n" @@ -29,4 +29,4 @@ " \n" " \t\tcount++;" -f6ca05cd65618b03ca9526c6431d7caa71b25b808f6188d5b6bcfbccde672f56 +8766981a3d9400ad5823b4c63bee7638b6589d25a6e55df69c1fc217138f01a2
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.