]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/bridge: synopsys: dw-dp: Drop useless memory allocation
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Mon, 9 Mar 2026 22:44:36 +0000 (00:44 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 26 Mar 2026 19:30:46 +0000 (20:30 +0100)
commit971a6d5d41315f3bfe1e1207f24da9a191c949ff
tree0baeb06d110e5e98beee7ca6471bf8c4b4ccb886
parente1f7b7cbd74c6561944f5dda345dab59ad391acb
drm/bridge: synopsys: dw-dp: Drop useless memory allocation

The bridge gets allocated and initialized implicitly via the
devm_drm_bridge_alloc() helper in dw_dp_bind().  However, this is
preceded by an explicit allocation for the same dw_dp struct, which is
never used anywhere as the return from devm_kzalloc() gets immediately
overwritten by the aforementioned helper.

Get rid of the unnecessary and confusing memory allocation.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20260310-drm-rk-fixes-v2-8-645ecfb43f49@collabora.com
drivers/gpu/drm/bridge/synopsys/dw-dp.c