Message ID | 20230808021446.2975843-1-lizetao1@huawei.com (mailing list archive) |
---|---|
State | Accepted |
Commit | c2bfe2b7a921906858006d72fd822f6121f6649f |
Headers | show |
Series | [-next] soc: qcom: wcnss_ctrl: Remove redundant initialization owner in wcnss_ctrl_driver | expand |
On Tue, 08 Aug 2023 10:14:46 +0800, Li Zetao wrote: > The module_rpmsg_driver() will set "THIS_MODULE" to driver.owner when > register a rpmsg_driver driver, so it is redundant initialization to set > driver.owner in the statement. Remove it for clean code. > > Applied, thanks! [1/1] soc: qcom: wcnss_ctrl: Remove redundant initialization owner in wcnss_ctrl_driver commit: c2bfe2b7a921906858006d72fd822f6121f6649f Best regards,
diff --git a/drivers/soc/qcom/wcnss_ctrl.c b/drivers/soc/qcom/wcnss_ctrl.c index ad9942412c58..2894e214cacf 100644 --- a/drivers/soc/qcom/wcnss_ctrl.c +++ b/drivers/soc/qcom/wcnss_ctrl.c @@ -355,7 +355,6 @@ static struct rpmsg_driver wcnss_ctrl_driver = { .callback = wcnss_ctrl_smd_callback, .drv = { .name = "qcom_wcnss_ctrl", - .owner = THIS_MODULE, .of_match_table = wcnss_ctrl_of_match, }, };
The module_rpmsg_driver() will set "THIS_MODULE" to driver.owner when register a rpmsg_driver driver, so it is redundant initialization to set driver.owner in the statement. Remove it for clean code. Signed-off-by: Li Zetao <lizetao1@huawei.com> --- drivers/soc/qcom/wcnss_ctrl.c | 1 - 1 file changed, 1 deletion(-)