diff options
author | Jani Nikula <ext-jani.1.nikula@nokia.com> | 2010-06-01 11:08:18 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-08-05 09:52:10 -0400 |
commit | 5cb33e2166067e1fff7ebc3b849ec70a6fd7ec1d (patch) | |
tree | 6531963d207d2adc5637f855243d0ad2c39c20f4 /drivers/video/omap2 | |
parent | 7f8b183059edc6c74654301431d520a91539e45f (diff) |
OMAP: DSS2: OMAPFB: Fix sysfs mirror input check
Using bool silently converted input to 0 or 1, making the range check
useless. Use unsigned long instead, and convert to bool later. Found by
Coverity.
Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-sysfs.c b/drivers/video/omap2/omapfb/omapfb-sysfs.c index 51c13c366bf3..6f9c72cd6bb0 100644 --- a/drivers/video/omap2/omapfb/omapfb-sysfs.c +++ b/drivers/video/omap2/omapfb/omapfb-sysfs.c | |||
@@ -102,7 +102,7 @@ static ssize_t store_mirror(struct device *dev, | |||
102 | { | 102 | { |
103 | struct fb_info *fbi = dev_get_drvdata(dev); | 103 | struct fb_info *fbi = dev_get_drvdata(dev); |
104 | struct omapfb_info *ofbi = FB2OFB(fbi); | 104 | struct omapfb_info *ofbi = FB2OFB(fbi); |
105 | bool mirror; | 105 | unsigned long mirror; |
106 | int r; | 106 | int r; |
107 | struct fb_var_screeninfo new_var; | 107 | struct fb_var_screeninfo new_var; |
108 | 108 | ||