linux/drivers/video/matrox
Julia Lawall 847fb8aca3 drivers/video/matrox/matroxfb_maven.c: fix unsigned return type
The function has an unsigned return type, but returns a negative constant
to indicate an error condition.  The result of calling the function is
only tested by comparison to 0, and thus unsigned is not needed and can be
dropped from the return type.

A sematic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@exists@
identifier f;
constant C;
@@

 unsigned f(...)
 { <+...
*  return -C;
 ...+> }
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Petr Vandrovec <vandrove@vc.cvut.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-10-27 18:03:08 -07:00
..
g450_pll.c matroxfb: fix problems with display stability 2009-12-16 07:20:05 -08:00
g450_pll.h matroxfb: get rid of unneeded macros WPMINFO and friends 2009-09-23 07:39:57 -07:00
i2c-matroxfb.c i2c: Add support for custom probe function 2010-08-11 18:20:56 +02:00
Makefile
matroxfb_accel.c matroxfb: get rid of unneeded macro MINFO_FROM 2009-09-23 07:39:57 -07:00
matroxfb_accel.h matroxfb: get rid of unneeded macros WPMINFO and friends 2009-09-23 07:39:57 -07:00
matroxfb_base.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
matroxfb_base.h matroxfb: fix incorrect use of memcpy_toio() 2010-08-20 09:34:54 -07:00
matroxfb_crtc2.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
matroxfb_crtc2.h matroxfb: color setting fixes 2007-07-17 10:23:13 -07:00
matroxfb_DAC1064.c drivers/video/matrox/matroxfb_DAC1064.c: remove undead ifdef CONFIG_FB_MATROX_G 2010-10-27 18:03:07 -07:00
matroxfb_DAC1064.h matroxfb: get rid of unneeded macros WPMINFO and friends 2009-09-23 07:39:57 -07:00
matroxfb_g450.c matroxfb: get rid of unneeded macro MINFO_FROM 2009-09-23 07:39:57 -07:00
matroxfb_g450.h matroxfb: get rid of unneeded macros WPMINFO and friends 2009-09-23 07:39:57 -07:00
matroxfb_maven.c drivers/video/matrox/matroxfb_maven.c: fix unsigned return type 2010-10-27 18:03:08 -07:00
matroxfb_maven.h
matroxfb_misc.c matroxfb: get rid of unneeded macros WPMINFO and friends 2009-09-23 07:39:57 -07:00
matroxfb_misc.h matroxfb: get rid of unneeded macros WPMINFO and friends 2009-09-23 07:39:57 -07:00
matroxfb_Ti3026.c matroxfb: get rid of unneeded macros WPMINFO and friends 2009-09-23 07:39:57 -07:00
matroxfb_Ti3026.h