From c7a5ae2f232e77ffd4e0713a6d72cb20471ae81c Mon Sep 17 00:00:00 2001 From: "Kirill A. Shutemov" Date: Thu, 8 Mar 2012 16:11:38 +0000 Subject: [PATCH] gma500: mdfld_dsi_pkg_sender: fix -Wtype-limits warning Signed-off-by: Kirill A. Shutemov Signed-off-by: Alan Cox Signed-off-by: Dave Airlie --- drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c b/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c index f193acec657e..baa0e14165e0 100644 --- a/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c +++ b/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c @@ -482,7 +482,7 @@ int mdfld_dsi_send_gen_short(struct mdfld_dsi_pkg_sender *sender, u8 param0, unsigned long flags; u8 data_type; - if (!sender || param_num < 0 || param_num > 2) { + if (!sender || param_num > 2) { DRM_ERROR("Invalid parameter\n"); return -EINVAL; } -- 2.30.2