media: staging: davinci: drop pointless static qualifier in vpfe_resizer_init()
authorMao Wenan <maowenan@huawei.com>
Mon, 11 Mar 2019 14:37:39 +0000 (10:37 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 19 Mar 2019 20:37:59 +0000 (16:37 -0400)
There is no need to have the 'T *v' variable static
since new value always be assigned before use it.

Signed-off-by: Mao Wenan <maowenan@huawei.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/davinci_vpfe/dm365_resizer.c

index 9d72629..3a9879d 100644 (file)
@@ -1881,7 +1881,7 @@ int vpfe_resizer_init(struct vpfe_resizer_device *vpfe_rsz,
        struct v4l2_subdev *sd = &vpfe_rsz->crop_resizer.subdev;
        struct media_pad *pads = &vpfe_rsz->crop_resizer.pads[0];
        struct media_entity *me = &sd->entity;
-       static resource_size_t  res_len;
+       resource_size_t res_len;
        struct resource *res;
        int ret;