aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2012-03-08 16:11:38 +0000
committerDave Airlie <airlied@redhat.com>2012-03-10 13:06:28 +0000
commitc7a5ae2f232e77ffd4e0713a6d72cb20471ae81c (patch)
treecb74a8f32e7aa23ccc4175bcfc1636c9ab4879d1 /drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c
parentgma500: mdfld_dsi_dpi: drop unused variables (diff)
downloadlinux-dev-c7a5ae2f232e77ffd4e0713a6d72cb20471ae81c.tar.xz
linux-dev-c7a5ae2f232e77ffd4e0713a6d72cb20471ae81c.zip
gma500: mdfld_dsi_pkg_sender: fix -Wtype-limits warning
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c')
-rw-r--r--drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c2
1 files changed, 1 insertions, 1 deletions
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;
}