diff options
author | Hsiao Chien Sung <[email protected]> | 2024-06-14 11:49:37 +0800 |
---|---|---|
committer | Chun-Kuang Hu <[email protected]> | 2024-06-27 13:46:22 +0000 |
commit | 4ed9dd7fde22ed614384c03f8049723cbe7e6a58 (patch) | |
tree | 926babdd951d820c7d2d22ccd7920bd0e10ffbca | |
parent | e7df7a200eaa636122be27d4a09ccbe83711a05a (diff) |
drm/mediatek: Remove less-than-zero comparison of an unsigned value
Fix a Coverity error that less-than-zero comparison of an unsigned value
is never true.
Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.")
Signed-off-by: Hsiao Chien Sung <[email protected]>
Reviewed-by: CK Hu <[email protected]>
Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/
Signed-off-by: Chun-Kuang Hu <[email protected]>
-rw-r--r-- | drivers/gpu/drm/mediatek/mtk_ddp_comp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_ddp_comp.c index 17b036411292..a66e46d0b45e 100644 --- a/drivers/gpu/drm/mediatek/mtk_ddp_comp.c +++ b/drivers/gpu/drm/mediatek/mtk_ddp_comp.c @@ -593,7 +593,7 @@ int mtk_ddp_comp_init(struct device_node *node, struct mtk_ddp_comp *comp, int ret; #endif - if (comp_id < 0 || comp_id >= DDP_COMPONENT_DRM_ID_MAX) + if (comp_id >= DDP_COMPONENT_DRM_ID_MAX) return -EINVAL; type = mtk_ddp_matches[comp_id].type; |