summaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core/v4l2-common.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-03-06 04:34:26 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-25 09:24:01 -0300
commit9d5f4839cc098f15a48f7063d39805ddfe84565c (patch)
treeaa347c5b05e2c7846318710fd894e8012056d5bf /drivers/media/v4l2-core/v4l2-common.c
parent9b6f5dc07ae008c58ea27e91a7b1dfbbd0f6972a (diff)
downloadblackbird-op-linux-9d5f4839cc098f15a48f7063d39805ddfe84565c.tar.gz
blackbird-op-linux-9d5f4839cc098f15a48f7063d39805ddfe84565c.zip
[media] v4l2-common: remove obsolete check for ' at the end of a driver name
During the transition to sub-devices several years ago non-subdev drivers had a ' at the end of their driver name to tell them apart from already converted drivers. This check was a left-over from that time and can be removed. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-common.c')
-rw-r--r--drivers/media/v4l2-core/v4l2-common.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/v4l2-core/v4l2-common.c b/drivers/media/v4l2-core/v4l2-common.c
index b81f274e60b0..a9e7703560ad 100644
--- a/drivers/media/v4l2-core/v4l2-common.c
+++ b/drivers/media/v4l2-core/v4l2-common.c
@@ -251,9 +251,6 @@ int v4l2_chip_match_i2c_client(struct i2c_client *c, const struct v4l2_dbg_match
if (c->driver == NULL || c->driver->driver.name == NULL)
return 0;
len = strlen(c->driver->driver.name);
- /* legacy drivers have a ' suffix, don't try to match that */
- if (len && c->driver->driver.name[len - 1] == '\'')
- len--;
return len && !strncmp(c->driver->driver.name, match->name, len);
case V4L2_CHIP_MATCH_I2C_ADDR:
return c->addr == match->addr;
OpenPOWER on IntegriCloud