From 0a76fdbdf75c3b3c67733c6ce4899c6aaa261d1b Mon Sep 17 00:00:00 2001 From: GWater Date: Fri, 14 Nov 2008 17:32:54 +0100 Subject: [PATCH] sn9c20x_set_LEDs() is not critical for the success of sn9c20x_enable_video() Signed-off-by: GWater --- sn9c20x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sn9c20x.c b/sn9c20x.c index d8fab86..a26ae01 100644 --- a/sn9c20x.c +++ b/sn9c20x.c @@ -209,10 +209,8 @@ int sn9c20x_enable_video(struct usb_microdia *dev, int enable) value &= ~0x02; ret = usb_microdia_control_write(dev, 0x1061, &value, 1); } - if (ret < 0) - return ret; - ret = sn9c20x_set_LEDs(dev, enable); + sn9c20x_set_LEDs(dev, enable); return ret; } -- 2.11.4.GIT