[PATCH 34/47] gma500: mdfld_dsi_pkg_sender: fix -Wtype-limits warning

Alan Cox alan at lxorguk.ukuu.org.uk
Thu Mar 8 08:11:38 PST 2012


From: Kirill A. Shutemov <kirill.shutemov at linux.intel.com>

Signed-off-by: Kirill A. Shutemov <kirill.shutemov at linux.intel.com>
Signed-off-by: Alan Cox <alan at linux.intel.com>
---

 drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c |    2 +-
 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 f193ace..baa0e14 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;
 	}



More information about the dri-devel mailing list