From: Kirill A. Shutemov Date: Thu, 8 Mar 2012 16:11:38 +0000 (+0000) Subject: gma500: mdfld_dsi_pkg_sender: fix -Wtype-limits warning X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c7a5ae2f232e77ffd4e0713a6d72cb20471ae81c;p=linux-beck.git 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 --- 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; }