Message ID | 20140305110937.GC16926@elgon.mountain (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Hans Verkuil |
Headers |
Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from <linux-media-owner@vger.kernel.org>) id 1WL9jL-0006R1-BS; Wed, 05 Mar 2014 12:11:19 +0100 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.72/mailfrontend-8) with esmtp id 1WL9jJ-0004nZ-jV; Wed, 05 Mar 2014 12:11:19 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755331AbaCELLK (ORCPT <rfc822;mkrufky@linuxtv.org> + 1 other); Wed, 5 Mar 2014 06:11:10 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:21580 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755028AbaCELLI (ORCPT <rfc822; linux-media@vger.kernel.org>); Wed, 5 Mar 2014 06:11:08 -0500 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s25BB3fK020560 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 5 Mar 2014 11:11:04 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s25BB3qU021550 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 5 Mar 2014 11:11:03 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s25BB2ju008670; Wed, 5 Mar 2014 11:11:02 GMT Received: from elgon.mountain (/41.202.233.181) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 05 Mar 2014 03:10:55 -0800 Date: Wed, 5 Mar 2014 14:09:37 +0300 From: Dan Carpenter <dan.carpenter@oracle.com> To: Mauro Carvalho Chehab <m.chehab@samsung.com> Cc: linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch v2] [patch] [media] em28xx-cards: remove a wrong indent level Message-ID: <20140305110937.GC16926@elgon.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <530B8995.8030807@googlemail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2014.3.5.110016 X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, MSGID_ADDED_BY_MTA 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_1099 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CD 0, __CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __DATE_TZ_RU 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILING_LIST 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MULTIPLE_RCPTS_CC_X2 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __URI_NO_WWW 0, __URI_NS , __USER_AGENT 0' |
Commit Message
Dan Carpenter
March 5, 2014, 11:09 a.m. UTC
This code is correct but the indenting is wrong and triggers a static
checker warning "add curly braces?".
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
v2: in v1 I added curly braces.
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Comments
Am 05.03.2014 12:09, schrieb Dan Carpenter: > This code is correct but the indenting is wrong and triggers a static > checker warning "add curly braces?". > > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > --- > v2: in v1 I added curly braces. > > diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx-cards.c > index 4d97a76cc3b0..33f06ffec4b2 100644 > --- a/drivers/media/usb/em28xx/em28xx-cards.c > +++ b/drivers/media/usb/em28xx/em28xx-cards.c > @@ -3331,8 +3331,8 @@ static int em28xx_usb_probe(struct usb_interface *interface, > if (has_video) { > if (!dev->analog_ep_isoc || (try_bulk && dev->analog_ep_bulk)) > dev->analog_xfer_bulk = 1; > - em28xx_info("analog set to %s mode.\n", > - dev->analog_xfer_bulk ? "bulk" : "isoc"); > + em28xx_info("analog set to %s mode.\n", > + dev->analog_xfer_bulk ? "bulk" : "isoc"); Instead of moving em28xx_info(...) to the left the if section needs to be moved to the right: - if (!dev->analog_ep_isoc || (try_bulk && dev->analog_ep_bulk)) - dev->analog_xfer_bulk = 1; + if (!dev->analog_ep_isoc || (try_bulk && dev->analog_ep_bulk)) + dev->analog_xfer_bulk = 1; While you are at it, could you also do fix the indention in the next paragraph ? Thanks ! Regards, Frank > } > if (has_dvb) { > if (!dev->dvb_ep_isoc || (try_bulk && dev->dvb_ep_bulk)) > -- > To unsubscribe from this list: send the line "unsubscribe linux-media" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Fri, Mar 07, 2014 at 05:46:28PM +0100, Frank Schäfer wrote: > > Am 05.03.2014 12:09, schrieb Dan Carpenter: > > This code is correct but the indenting is wrong and triggers a static > > checker warning "add curly braces?". > > > > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > > --- > > v2: in v1 I added curly braces. > > > > diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx-cards.c > > index 4d97a76cc3b0..33f06ffec4b2 100644 > > --- a/drivers/media/usb/em28xx/em28xx-cards.c > > +++ b/drivers/media/usb/em28xx/em28xx-cards.c > > @@ -3331,8 +3331,8 @@ static int em28xx_usb_probe(struct usb_interface *interface, > > if (has_video) { > > if (!dev->analog_ep_isoc || (try_bulk && dev->analog_ep_bulk)) > > dev->analog_xfer_bulk = 1; > > - em28xx_info("analog set to %s mode.\n", > > - dev->analog_xfer_bulk ? "bulk" : "isoc"); > > + em28xx_info("analog set to %s mode.\n", > > + dev->analog_xfer_bulk ? "bulk" : "isoc"); > > Instead of moving em28xx_info(...) to the left the if section needs to > be moved to the right: > > - if (!dev->analog_ep_isoc || (try_bulk && dev->analog_ep_bulk)) > - dev->analog_xfer_bulk = 1; > + if (!dev->analog_ep_isoc || (try_bulk && dev->analog_ep_bulk)) > + dev->analog_xfer_bulk = 1; Yes. I'd happy to. > > While you are at it, could you also do fix the indention in the next > paragraph ? The next paragraph is almost identical but my static checker was ignoring the curly braces because of the blank line. I'll modify to complain about that as well. I'll resend. Thanks for the review. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx-cards.c index 4d97a76cc3b0..33f06ffec4b2 100644 --- a/drivers/media/usb/em28xx/em28xx-cards.c +++ b/drivers/media/usb/em28xx/em28xx-cards.c @@ -3331,8 +3331,8 @@ static int em28xx_usb_probe(struct usb_interface *interface, if (has_video) { if (!dev->analog_ep_isoc || (try_bulk && dev->analog_ep_bulk)) dev->analog_xfer_bulk = 1; - em28xx_info("analog set to %s mode.\n", - dev->analog_xfer_bulk ? "bulk" : "isoc"); + em28xx_info("analog set to %s mode.\n", + dev->analog_xfer_bulk ? "bulk" : "isoc"); } if (has_dvb) { if (!dev->dvb_ep_isoc || (try_bulk && dev->dvb_ep_bulk))