From patchwork Sun Mar 21 18:01:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olimpiu Pascariu X-Patchwork-Id: 87271 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2LI1iqr016871 for ; Sun, 21 Mar 2010 18:01:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751778Ab0CUSBS (ORCPT ); Sun, 21 Mar 2010 14:01:18 -0400 Received: from smtp1.rdslink.ro ([81.196.12.70]:54792 "EHLO smtp.rdslink.ro" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751386Ab0CUSBS (ORCPT ); Sun, 21 Mar 2010 14:01:18 -0400 Received: (qmail 2968 invoked from network); 21 Mar 2010 18:01:16 -0000 X-Mail-Scanner: Scanned by qSheff-II-2.1-r3 (http://www.enderunix.org/qsheff/) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on antismap2-link.rdsnet.ro X-Spam-Level: X-Spam-Status: No, score=0.1 required=10.0 tests=BAYES_50,RDNS_NONE autolearn=no version=3.2.5 Received: from unknown (HELO ?192.168.0.157?) (79.114.52.62) by smtp1.rdslink.ro with SMTP; 21 Mar 2010 18:01:13 -0000 Subject: 0004-Staging-cx25821-fix-coding-style-issues-in-cx25821-i.patch From: Olimpiu Pascariu To: gregkh@suse.de, mchehab@redhat.com, palash.bandyopadhyay@conexant.com Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Date: Sun, 21 Mar 2010 20:01:13 +0200 Message-ID: <1269194473.6971.8.camel@tuxtm-linux> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 21 Mar 2010 18:01:44 +0000 (UTC) diff --git a/drivers/staging/cx25821/cx25821-i2c.c b/drivers/staging/cx25821/cx25821-i2c.c index f4f2681..f727b85 100644 --- a/drivers/staging/cx25821/cx25821-i2c.c +++ b/drivers/staging/cx25821/cx25821-i2c.c @@ -159,9 +159,9 @@ static int i2c_sendbytes(struct i2c_adapter *i2c_adap, return msg->len; - eio: +eio: retval = -EIO; - err: +err: if (i2c_debug) printk(KERN_ERR " ERR: %d\n", retval); return retval; @@ -223,9 +223,9 @@ static int i2c_readbytes(struct i2c_adapter *i2c_adap, } return msg->len; - eio: +eio: retval = -EIO; - err: +err: if (i2c_debug) printk(KERN_ERR " ERR: %d\n", retval); return retval; @@ -266,7 +266,7 @@ static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) } return num; - err: +err: return retval; } @@ -319,7 +319,7 @@ int cx25821_i2c_register(struct cx25821_i2c *bus) bus->i2c_client.adapter = &bus->i2c_adap; - //set up the I2c + /* set up the I2c */ bus->i2c_client.addr = (0x88 >> 1); return bus->i2c_rc;