summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/sr030pc30.c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2018-08-29 06:01:48 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-17 15:18:38 -0400
commit7d3073f13ea85a1e8b868502fa6735696a629060 (patch)
treef3e188652c60d5087b42b5763f362da4d2368781 /drivers/media/i2c/sr030pc30.c
parent18ce84857975c976022429dc964bd01d60f87d0c (diff)
downloadlinux-7d3073f13ea85a1e8b868502fa6735696a629060.tar.gz
media: v4l: sr030pc30: Remove redundant setting of sub-device name
The sub-device name is set right after in v4l2_i2c_subdev_init(). Remove the redundant strcpy() call. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c/sr030pc30.c')
-rw-r--r--drivers/media/i2c/sr030pc30.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/i2c/sr030pc30.c b/drivers/media/i2c/sr030pc30.c
index 344666293f7d..3d3fb1cda28c 100644
--- a/drivers/media/i2c/sr030pc30.c
+++ b/drivers/media/i2c/sr030pc30.c
@@ -703,7 +703,6 @@ static int sr030pc30_probe(struct i2c_client *client,
return -ENOMEM;
sd = &info->sd;
- strscpy(sd->name, MODULE_NAME, sizeof(sd->name));
info->pdata = client->dev.platform_data;
v4l2_i2c_subdev_init(sd, client, &sr030pc30_ops);