]> git.baikalelectronics.ru Git - kernel.git/commit
media: rkisp1: Get rid of unused variable warning
authorEzequiel Garcia <ezequiel@collabora.com>
Thu, 2 Apr 2020 19:45:02 +0000 (21:45 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 21 Apr 2020 11:42:29 +0000 (13:42 +0200)
commit5cdf1e9e35ec5acbe8d5ee0eed6746fd1c7d8d5f
tree3a22024f1d0efd83022742467af88dc795ec2125
parent5885407688fe8c8a3952c041d15da7e7dca22a1d
media: rkisp1: Get rid of unused variable warning

If CONFIG_OF is not selected, the compiler will complain:

drivers/staging/media/rkisp1/rkisp1-dev.c: In function ‘rkisp1_probe’:
drivers/staging/media/rkisp1/rkisp1-dev.c:457:22: warning: unused variable ‘node’ [-Wunused-variable]
  457 |  struct device_node *node = pdev->dev.of_node;

Rework the code slightly and make the compiler happy.

Suggested-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/rkisp1/rkisp1-dev.c