media: rkvdec: Remove of_match_ptr()
authorFabio Estevam <festevam@gmail.com>
Sat, 20 Mar 2021 12:21:52 +0000 (13:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:30:02 +0000 (10:30 +0200)
commit9085b64078222b384742ec7763b308b02ee4d9a6
tree5d823f5652390d9f80b7f3879578ff384ba919d1
parentf4ecadc026d6f6a0afcb55531a80d4e56290cecc
media: rkvdec: Remove of_match_ptr()

commit c2357dd9cbafc8ed37156e32c24884cfa8380b2f upstream.

When building with CONFIG_OF not set, the following clang
build warning is seen:

>> drivers/staging/media/rkvdec/rkvdec.c:967:34: warning: unused variable 'of_rkvdec_match' [-Wunused-const-variable]

Fix the warning by removing the unnecessary of_match_ptr().

Reported-by: kernel test robot <lkp@intel.com>
Fixes: cd33c830448b ("media: rkvdec: Add the rkvdec driver")
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/rkvdec/rkvdec.c