From 213b8a9af600316902e08e010fbcd216e42e41f7 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 10 May 2007 22:23:28 -0700 Subject: rivafb: Fix I2C getscl callback function Fix rivafb's I2C getscl callback function, as was done in nvidiafb recently. Signed-off-by: Jean Delvare Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/video/riva/rivafb-i2c.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/video/riva') diff --git a/drivers/video/riva/rivafb-i2c.c b/drivers/video/riva/rivafb-i2c.c index 76e6ce353c8e..a0e22ac483a3 100644 --- a/drivers/video/riva/rivafb-i2c.c +++ b/drivers/video/riva/rivafb-i2c.c @@ -70,8 +70,6 @@ static int riva_gpio_getscl(void* data) if (VGA_RD08(par->riva.PCIO, 0x3d5) & 0x04) val = 1; - val = VGA_RD08(par->riva.PCIO, 0x3d5); - return val; } -- cgit v1.2.3