提交 97e5aaba 编写于 作者: F Fabio Estevam 提交者: Zheng Zengkai

media: rkvdec: Remove of_match_ptr()

stable inclusion
from stable-5.10.38
commit 667627fa85a8bf02024319028b6c3121b3b494f0
bugzilla: 51875
CVE: NA

--------------------------------

commit c2357dd9 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: Nkernel test robot <lkp@intel.com>
Fixes: cd33c830 ("media: rkvdec: Add the rkvdec driver")
Signed-off-by: NFabio Estevam <festevam@gmail.com>
Reviewed-by: NEzequiel Garcia <ezequiel@collabora.com>
Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 f3d32056
......@@ -1107,7 +1107,7 @@ static struct platform_driver rkvdec_driver = {
.remove = rkvdec_remove,
.driver = {
.name = "rkvdec",
.of_match_table = of_match_ptr(of_rkvdec_match),
.of_match_table = of_rkvdec_match,
.pm = &rkvdec_pm_ops,
},
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册