Skip to content

Commit

Permalink
gma500: mdfld_dsi_pkg_sender: fix -Wtype-limits warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kirill A. Shutemov authored and Dave Airlie committed Mar 10, 2012
1 parent e4b9ff7 commit c7a5ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c7a5ae2

Please sign in to comment.