media: v4l: sr030pc30: Remove redundant setting of sub-device name
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 29 Aug 2018 10:01:48 +0000 (06:01 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 17 Sep 2018 19:18:38 +0000 (15:18 -0400)
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>
drivers/media/i2c/sr030pc30.c

index 3446662..3d3fb1c 100644 (file)
@@ -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);