Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1025012imu; Wed, 16 Jan 2019 11:23:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN6zc0XLuiu02tLLwtvcfEek/WaQvLyL2n0tXtzlU4tkwItOshMZwTy+grP7GFdD/eCq8zRs X-Received: by 2002:a17:902:2:: with SMTP id 2mr11725504pla.228.1547666616694; Wed, 16 Jan 2019 11:23:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547666616; cv=none; d=google.com; s=arc-20160816; b=t4w35TkUxEEHiFm+F8tS4y88SlhT1W4SV9BRFj+dYTfOMk0F7u9GQAO9sM1IL3ApPt yNuOlkpNmy2tJjRnT0o5YpjuHA6O1Zfo/+kRAWTvfaVbVEChC5RVQlqXdybPme2VtD0u CjLPAtLPD7BErzfFsKCvU3dbujcq1QzWk4t/59g8sBv3u2cjc/qxBoDd7I6BUrWS/Cai qbkvwczlpi+Z3m8NRc/f50rpSMMVC3XCjTxErwmQGC1o77TK9+R49ACp384CUCgISRxw 6WarI3yTFegR5LQxKSl4Lbjf4De9qRBXoQPR3HwmuiDnO1RmcqmnN1hPE2VndOyd0SW4 b46w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:to:subject; bh=a2OvY7s3lJRzbuF+1+8CMbwxL7uzgYNhwqogaH7H8SM=; b=CF6GWbqp++0fNnKXf8DI69bPLGgB/eB3uOSNQIJrQabygXr0+KxKklRAmb/Z3By1r9 JTc7wX1CdAsL4yN5sXlqd0KIw0H6kJv6k+Huhg1TTNVysTxBtTDyEQrz4+w5UHJRvre/ pEenQ7NSaP+2A2e22pmqgqhn3ABcvyWUzS4N8CeY7ClE56JwwCOGrJDrwO7h/KTu080m 5x5FDhdJjWclT02B9tC2GhezeDNVyjw/0Qi86HnCP/wGJIidR7ZA9pbJgWIbKvuFLI74 /4/YZbhF4fLMtHW5qC6ax2Kf7ystypwJ3XzwRHw77w8WHDR5hFwPBdOGoAKOdEnZ9axJ ysoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d34si6757322pgb.43.2019.01.16.11.23.20; Wed, 16 Jan 2019 11:23:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392223AbfAPKvy (ORCPT + 99 others); Wed, 16 Jan 2019 05:51:54 -0500 Received: from smtp64.iad3a.emailsrvr.com ([173.203.187.64]:58793 "EHLO smtp64.iad3a.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389044AbfAPKvx (ORCPT ); Wed, 16 Jan 2019 05:51:53 -0500 X-Greylist: delayed 459 seconds by postgrey-1.27 at vger.kernel.org; Wed, 16 Jan 2019 05:51:52 EST Received: from smtp33.relay.iad3a.emailsrvr.com (localhost [127.0.0.1]) by smtp33.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id 5E696543C for ; Wed, 16 Jan 2019 05:44:14 -0500 (EST) Received: from smtp65.iad3a.emailsrvr.com (relay.iad3a.rsapps.net [172.27.255.110]) by smtp33.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTPS id 56FDB540A for ; Wed, 16 Jan 2019 05:44:14 -0500 (EST) Received: from smtp1.relay.iad3a.emailsrvr.com (localhost [127.0.0.1]) by smtp1.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id BA5D55B10 for ; Wed, 16 Jan 2019 05:44:13 -0500 (EST) Received: from smtp97.iad3a.emailsrvr.com (relay.iad3a.rsapps.net [172.27.255.110]) by smtp1.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTPS id B297C5A79 for ; Wed, 16 Jan 2019 05:44:13 -0500 (EST) Received: from smtp5.relay.iad3a.emailsrvr.com (localhost [127.0.0.1]) by smtp5.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id 2701925732; Wed, 16 Jan 2019 05:44:13 -0500 (EST) X-Auth-ID: siepeng@mev.co.uk Received: by smtp5.relay.iad3a.emailsrvr.com (Authenticated sender: siepeng-AT-mev.co.uk) with ESMTPSA id 87BB5257CA; Wed, 16 Jan 2019 05:44:12 -0500 (EST) X-Sender-Id: siepeng@mev.co.uk Received: from [10.0.0.185] (remote.quintadena.com [81.133.34.160]) (using TLSv1.2 with cipher AES128-SHA) by 0.0.0.0:465 (trex/5.7.12); Wed, 16 Jan 2019 05:44:13 -0500 Subject: Re: [PATCH] staging: comedi: Removed not necessary braces for single block To: Jitendra Khasdev , hsweeten@visionengravers.com, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org References: <20190115153656.10913-1-jkhasdev@gmail.com> From: Ian Abbott Organization: MEV Ltd. Message-ID: <8c44b247-e44d-aaff-e0af-544b2c4eb4c0@mev.co.uk> Date: Wed, 16 Jan 2019 10:44:11 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190115153656.10913-1-jkhasdev@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/01/2019 15:36, Jitendra Khasdev wrote: > This patch is used to remove not necessary braces for single if block. > > Signed-off-by: Jitendra Khasdev > --- > drivers/staging/comedi/comedi_fops.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c > index 5d2fcbfe02af..38980fad8be4 100644 > --- a/drivers/staging/comedi/comedi_fops.c > +++ b/drivers/staging/comedi/comedi_fops.c > @@ -1605,9 +1605,9 @@ static int do_insn_ioctl(struct comedi_device *dev, > unsigned int n_data = MIN_SAMPLES; > int ret = 0; > > - if (copy_from_user(&insn, arg, sizeof(insn))) { > + if (copy_from_user(&insn, arg, sizeof(insn))) > return -EFAULT; > - } > + > > n_data = max(n_data, insn.n); > > The patch looks fine. Thanks for the fix! Reviewed-by: Ian Abbott -- -=( Ian Abbott || Web: www.mev.co.uk )=- -=( MEV Ltd. is a company registered in England & Wales. )=- -=( Registered number: 02862268. Registered address: )=- -=( 15 West Park Road, Bramhall, STOCKPORT, SK7 3JZ, UK. )=-