From: Chen Gang <hidden> Date: 2013-07-22 08:26:10
According to fb_set_cmap() in this file, knows about it is necessary to
check 'start' whether less than zero or not, so need add related type
cast for its comparing.
The related warning:
drivers/video/fbcmap.c:288:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
Signed-off-by: Chen Gang <redacted>
---
drivers/video/fbcmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
From: David Herrmann <hidden> Date: 2013-08-16 13:56:33
Hi
On Mon, Jul 22, 2013 at 10:26 AM, Chen Gang [off-list ref] wrote:
quoted hunk
According to fb_set_cmap() in this file, knows about it is necessary to
check 'start' whether less than zero or not, so need add related type
cast for its comparing.
The related warning:
drivers/video/fbcmap.c:288:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
Signed-off-by: Chen Gang <redacted>
---
drivers/video/fbcmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
What's the reason to do this, anyway? fb_set_cmap() does the same but
actually casts to a signed integer. So I think we can remove this
check here.
Regards
David
rc = -EINVAL;
goto out1;
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Chen Gang <hidden> Date: 2013-08-20 02:24:10
On 08/16/2013 09:56 PM, David Herrmann wrote:
Hi
On Mon, Jul 22, 2013 at 10:26 AM, Chen Gang [off-list ref] wrote:
quoted
According to fb_set_cmap() in this file, knows about it is necessary to
check 'start' whether less than zero or not, so need add related type
cast for its comparing.
The related warning:
drivers/video/fbcmap.c:288:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
Signed-off-by: Chen Gang <redacted>
---
drivers/video/fbcmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
What's the reason to do this, anyway? fb_set_cmap() does the same but
actually casts to a signed integer. So I think we can remove this
check here.
OK, that sounds reasonable to me, and now my mail client is OK, I will
send patch v2 for it.
:-)
Regards
David
quoted
rc = -EINVAL;
goto out1;
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html