]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-dsa-remove-unnecessary-set_drvdata'
authorJakub Kicinski <kuba@kernel.org>
Fri, 23 Sep 2022 02:31:38 +0000 (19:31 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Sep 2022 02:31:39 +0000 (19:31 -0700)
commit64a0f1d9ce5355588d8af6aab340a09ed4efe7e6
treeaae0399fa402ff72d8abae39bc88c5ac944ff24d
parent3971be9c7c5d4a5f777037b566fd1255c48d6404
parent21124361a993986c53497d0db2d2b380bf9e11d6
Merge branch 'net-dsa-remove-unnecessary-set_drvdata'

Yang Yingliang says:

====================
net: dsa: remove unnecessary set_drvdata()

In this patch set, I removed all set_drvdata(NULL) functions
in ->remove() in drivers/net/dsa/.

The driver_data will be set to NULL in device_unbind_cleanup()
after calling ->remove(), so all set_drvdata(NULL) functions
in ->remove() is redundant, they can be removed.

Here is the previous patch set:
https://lore.kernel.org/netdev/facfc855-d082-cc1c-a0bc-027f562a2f45@huawei.com/T/
====================

Link: https://lore.kernel.org/r/20220921140524.3831101-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>