Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/msm/dpu: drop unused memory allocation

Drop the dpu_cfg variable and corresponding kzalloc, which became unused
after changing hw catalog to static configuration.

Fixes: de7d480f5e8c ("drm/msm/dpu: make dpu hardware catalog static const")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/498738/
Link: https://lore.kernel.org/r/20220822172455.282923-1-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>

authored by

Dmitry Baryshkov and committed by
Rob Clark
1364a4ee 606f015b

-5
-5
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
··· 1939 1939 const struct dpu_mdss_cfg *dpu_hw_catalog_init(u32 hw_rev) 1940 1940 { 1941 1941 int i; 1942 - struct dpu_mdss_cfg *dpu_cfg; 1943 - 1944 - dpu_cfg = kzalloc(sizeof(*dpu_cfg), GFP_KERNEL); 1945 - if (!dpu_cfg) 1946 - return ERR_PTR(-ENOMEM); 1947 1942 1948 1943 for (i = 0; i < ARRAY_SIZE(cfg_handler); i++) { 1949 1944 if (cfg_handler[i].hw_rev == hw_rev)