gma500: mdfld_dsi_pkg_sender: fix -Wtype-limits warning
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 8 Mar 2012 16:11:38 +0000 (16:11 +0000)
committerDave Airlie <airlied@redhat.com>
Sat, 10 Mar 2012 13:06:28 +0000 (13:06 +0000)
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>
drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c

index f193acec657ec535bbfe96dd45d20b00ae9ae560..baa0e14165e0fb531833cdb57492f371443c30f5 100644 (file)
@@ -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;
        }