Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2641789pxa; Mon, 24 Aug 2020 21:58:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoAkLeUaGVkLG1EseWJ/M1TTvVQoLhaD/rSEt3Ea3cQHKXuTWNGEBMLE8F4lnJ2MNwvGv8 X-Received: by 2002:a17:906:688c:: with SMTP id n12mr8794206ejr.3.1598331531741; Mon, 24 Aug 2020 21:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598331531; cv=none; d=google.com; s=arc-20160816; b=oxhNhgL/ieyar85xylnowlNVIr7u8pYfG0wqSIE1Z3xduSUq0PgEu905hh6Paf1h96 TMfPMn8ue/iw+TcOGmroIIDdUZE+yqMW1HuiYHnuCGrc80d1DUCHMvlILwLnp6r/s5IV bfoYn/49d6552Bb9fc34zw+AVd3rUIXucG7cG9NjaH0kObzeoj0dkmY7lBwtLvL1mbTj DgzfVz7bZJEnBfW8oU/v3Sk3xj+IydIdy2tJzFKmBinmtoeVVkqBk4aPmdtl/d6OGCaC /Na0ePd0pwry9GUCJQFzwQdP5XjCDecqVvUQ/Hv9OyYCtXVdxzYVem6ZHTe/zC5qNkaw 3k4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=iWTBxiJuNhGJeru0Gw8oswZ/fdjoQVzKl0J8lscqPYc=; b=P2/ugGFR86Cw94LB3nnMv8X5MSjxf2EGPHxnggRU1VDR2k+SEnmj3JKiDcmg/c247l NGZZbfXCmOWuKJjN0WeJ7xZxYLbd0FTbhzAfFLvyF+VXdVLel3oNd0Gehq+Ms8wvavDy cci8F7RI0cx7zCAl+Q6l3+LE1N6OqpaWDAXwrepHN4akUwPkkNC2vvvYCvaguc/ZgUFK mIWapKSWW0IG5s9V1U9378npn6gE3umxVvB64zKNaGRk19gNCXyDY0YVHAmHJs4yVeV4 cRBLf3qt4oBN0PkhneszDRaGgvlfRkfbTTPm8SwmgCHAHlGvOK+SrS4SzlPQ/Q4LjsQO sE/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si8520691edb.410.2020.08.24.21.58.29; Mon, 24 Aug 2020 21:58:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728905AbgHYE51 (ORCPT + 99 others); Tue, 25 Aug 2020 00:57:27 -0400 Received: from smtprelay0209.hostedemail.com ([216.40.44.209]:35694 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728749AbgHYE5M (ORCPT ); Tue, 25 Aug 2020 00:57:12 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 9C175180A7FD3; Tue, 25 Aug 2020 04:57:08 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:541:800:857:960:973:988:989:1260:1311:1314:1345:1359:1515:1534:1542:1711:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3352:3868:4321:4384:4605:5007:6117:6119:6261:7903:9036:10004:10848:11026:11473:11657:11658:11914:12043:12297:12438:12555:12895:12986:13138:13231:13894:14181:14394:14721:21080:21627:21773:21990:30029:30054,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: net87_2b0b7db27059 X-Filterd-Recvd-Size: 3347 Received: from joe-laptop.perches.com (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA; Tue, 25 Aug 2020 04:57:07 +0000 (UTC) From: Joe Perches To: Jiri Kosina , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 14/29] media: Avoid comma separated statements Date: Mon, 24 Aug 2020 21:56:11 -0700 Message-Id: <5f2ac0ba683d4e5d3449395721788527b8487a57.1598331149.git.joe@perches.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use semicolons and braces. Signed-off-by: Joe Perches --- drivers/media/i2c/msp3400-kthreads.c | 12 ++++++++---- drivers/media/pci/bt8xx/bttv-cards.c | 6 ++++-- drivers/media/pci/saa7134/saa7134-video.c | 7 +++++-- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/drivers/media/i2c/msp3400-kthreads.c b/drivers/media/i2c/msp3400-kthreads.c index d3b0d1c18efd..ac8752c63266 100644 --- a/drivers/media/i2c/msp3400-kthreads.c +++ b/drivers/media/i2c/msp3400-kthreads.c @@ -549,8 +549,10 @@ int msp3400c_thread(void *data) val = msp_read_dsp(client, 0x1b); if (val > 32767) val -= 65536; - if (val1 < val) - val1 = val, max1 = i; + if (val1 < val) { + val1 = val; + max1 = i; + } dev_dbg_lvl(&client->dev, 1, msp_debug, "carrier1 val: %5d / %s\n", val, cd[i].name); } @@ -586,8 +588,10 @@ int msp3400c_thread(void *data) val = msp_read_dsp(client, 0x1b); if (val > 32767) val -= 65536; - if (val2 < val) - val2 = val, max2 = i; + if (val2 < val) { + val2 = val; + max2 = i; + } dev_dbg_lvl(&client->dev, 1, msp_debug, "carrier2 val: %5d / %s\n", val, cd[i].name); } diff --git a/drivers/media/pci/bt8xx/bttv-cards.c b/drivers/media/pci/bt8xx/bttv-cards.c index 16148802dabb..ca20b806e82d 100644 --- a/drivers/media/pci/bt8xx/bttv-cards.c +++ b/drivers/media/pci/bt8xx/bttv-cards.c @@ -3934,8 +3934,10 @@ static void osprey_eeprom(struct bttv *btv, const u8 ee[256]) if (checksum != ee[21]) return; cardid = BTTV_BOARD_OSPREY1x0_848; - for (i = 12; i < 21; i++) - serial *= 10, serial += ee[i] - '0'; + for (i = 12; i < 21; i++) { + serial *= 10; + serial += ee[i] - '0'; + } } } else { unsigned short type; diff --git a/drivers/media/pci/saa7134/saa7134-video.c b/drivers/media/pci/saa7134/saa7134-video.c index a8ac94fadc14..f673cda57f30 100644 --- a/drivers/media/pci/saa7134/saa7134-video.c +++ b/drivers/media/pci/saa7134/saa7134-video.c @@ -868,8 +868,11 @@ static int buffer_activate(struct saa7134_dev *dev, lines_uv = dev->height >> dev->fmt->vshift; base2 = base + bpl * dev->height; base3 = base2 + bpl_uv * lines_uv; - if (dev->fmt->uvswap) - tmp = base2, base2 = base3, base3 = tmp; + if (dev->fmt->uvswap) { + tmp = base2; + base2 = base3; + base3 = tmp; + } video_dbg("uv: bpl=%ld lines=%ld base2/3=%ld/%ld\n", bpl_uv,lines_uv,base2,base3); if (V4L2_FIELD_HAS_BOTH(dev->field)) { -- 2.26.0