drm/rockchip: vop: Add errno if &vop->lut memory allocation failed in vop_create_crtc()
If no errno assignment for this case, there will be a warning: drivers/gpu/drm/rockchip/rockchip_drm_vop.c:5754 vop_create_crtc() warn: missing error code 'ret' Change-Id: I9e78fe99b3ca24d8734ee286b1dc1f0908721f25 Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
This commit is contained in:
@@ -5756,8 +5756,10 @@ static int vop_create_crtc(struct vop *vop)
|
||||
|
||||
vop->lut = devm_kmalloc_array(dev, lut_len, sizeof(*vop->lut),
|
||||
GFP_KERNEL);
|
||||
if (!vop->lut)
|
||||
if (!vop->lut) {
|
||||
ret = -ENOMEM;
|
||||
goto err_unregister_crtc_funcs;
|
||||
}
|
||||
|
||||
if (vop_of_init_display_lut(vop)) {
|
||||
for (i = 0; i < lut_len; i++) {
|
||||
|
||||
Reference in New Issue
Block a user