From c1a65ebd05a9a6b9ae753fbc9f6ed2a8f0f4f09f Mon Sep 17 00:00:00 2001 From: Mao Wenan Date: Mon, 11 Mar 2019 10:37:39 -0400 Subject: [PATCH] media: staging: davinci: drop pointless static qualifier in vpfe_resizer_init() 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 Reviewed-by: Dan Carpenter Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/media/davinci_vpfe/dm365_resizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/davinci_vpfe/dm365_resizer.c b/drivers/staging/media/davinci_vpfe/dm365_resizer.c index 9d726298b406..3a9879d2f337 100644 --- a/drivers/staging/media/davinci_vpfe/dm365_resizer.c +++ b/drivers/staging/media/davinci_vpfe/dm365_resizer.c @@ -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; -- 2.30.2