Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4958469imu; Tue, 15 Jan 2019 08:47:24 -0800 (PST) X-Google-Smtp-Source: ALg8bN5pui8M5/veIG2rOas7SrSXIjK+SJB+eWHz7Yp3azSheusaE0M8sQLf1gegJhufOFGTldBj X-Received: by 2002:a62:31c1:: with SMTP id x184mr5065828pfx.204.1547570844545; Tue, 15 Jan 2019 08:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547570844; cv=none; d=google.com; s=arc-20160816; b=bZjPL1mLo4XVznDIc64jMzHmPLxrirmwSpLtYjH0QsIpwfOmbUJn0WOtZOxRjSZ3eU oCGkOFFF4dge0EhLNk1FQ5Fh3mf/7ZfiXu9hbXKbnfd49l/+mqAG/Fqq5WkTTm4+/pMS x3H3PRA8Leo3eYmRf0PzP/17rM9rO7+fVU/D5YN1xJXWHZfqspTcCdIKU9wjlgqDX63Z NKsjVHCso94OKmhcLmup8XHkfrhtAx4TKoqkQLs7RK7afXasFf1Iqly3ECXpOgq8A9eS 9ilqKdJTt6RTUQ/BuHlbd5D6OBCuXJowGcXzToad41HKRkWSbCUOgtcKT97ysYhp3+Uh fEaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature; bh=cIuxEpWisEjPVqKp+w4O77xsXl6q6AEveTBf7dv44mk=; b=hM8nKSz1PpOp8px4rr3JBJYcjuGfKmZoCTkRTklcHC2IpYiB1cj88IPoerBCRhsRnU b8azbeW77GP6FHRDnupc0F3CLmYuAhIy8TNUI6s62pct6z6lcpNn/X0scYAqbP6j14Li S9mebt4shR9MaLKNRbLWYVEPDk5mzWLAfE/RVCxXPTLn8YpvuGhQd/UnATRJj4uOcEE/ 1yDxz1G2KVxfF5zAJvcYg+s3rn/bJtxCIPf/BeiZG3Vqo3815XBxY4a87WQXbviK4cod 6+h+AWWY2GmGpnYivSwWyArvCJqlSXqvL3/G0pBeSX7mxqW+w2BCXvwiPqWusCqPefHV xDQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CJhtjcj4; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6si3603019pgc.137.2019.01.15.08.47.09; Tue, 15 Jan 2019 08:47:24 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CJhtjcj4; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731088AbfAOPoo (ORCPT + 99 others); Tue, 15 Jan 2019 10:44:44 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:39491 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729725AbfAOPoo (ORCPT ); Tue, 15 Jan 2019 10:44:44 -0500 Received: by mail-pg1-f193.google.com with SMTP id w6so1391350pgl.6 for ; Tue, 15 Jan 2019 07:44:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=cIuxEpWisEjPVqKp+w4O77xsXl6q6AEveTBf7dv44mk=; b=CJhtjcj4bBHRn9bqCE5k+WxGTGaV5pGUp3b1VKvRWsbHdpPMbBm1PtQezpnPv3eByY bC7wyo9zsw6fBkC2cW3wP6wcc8kdBsqWOiiPy/f88jUe7Dcw/Bo5ZK+J5KTsTEJKL/Rr wRZlu8ERUI9qlD3zIEFCGWF4EMSKK/uSjvsGzPghTRmNCYRthPXeiBf9CLVRFZo+ZsJH AI7cTV08LD02t1PVAYYoLKPJGAz1/Kef8ppRs9AUVzMjADu7y9SDeHDgDdbstEESJNMR FUd8l39jAv8D1/6kD6UfyyuRZcEWWWRAmdiMeYf9HNslfBWhvFfcsQrqOfOJheFC6zve lDAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=cIuxEpWisEjPVqKp+w4O77xsXl6q6AEveTBf7dv44mk=; b=Rsb0f97T/Jf5j/lRlZC5KFD8jJmLjh1SvNuWyzyb1K05nxQrKn+I/f4lIPVP7UE3DU NNks+ApGd6I/U2gjLlBKqk+MOkjg+k8TZ+QW5mOIqsALZJpzYHCA0IUQfk/vkafTp3k+ A2l532026VIyslIV73qwidB6mOGpG0xq/z73kIqp5Aa6Ys1dr/oJAvyW17fJEWCZq5xQ +i7FCs/9fHKkHZbAnkg7pW6BKx+15ndwEq5PWN+rvWPlCKJuxY9cU7eGFzcBjp7RhmeW No1DvPKBYNzbrsMb0O70AGfnzSyI4FEx7a52v265hjb0ML/s3S8mrhNV4APNf0qszAmk A4Hw== X-Gm-Message-State: AJcUukea2FEwV2i20uOOjcHam1t4QqU4mS+eRU+q443Qfku/bIco1D55 tDLNddrSAy0ag0DS9YMgvqk= X-Received: by 2002:a62:f54f:: with SMTP id n76mr4667444pfh.59.1547567083733; Tue, 15 Jan 2019 07:44:43 -0800 (PST) Received: from localhost.localdomain.com ([203.109.101.34]) by smtp.googlemail.com with ESMTPSA id 62sm4002742pgc.61.2019.01.15.07.44.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Jan 2019 07:44:43 -0800 (PST) From: Jitendra Khasdev To: abbotti@mev.co.uk, hsweeten@visionengravers.com, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: comedi: Removed not necessary braces for single block Date: Tue, 15 Jan 2019 21:06:56 +0530 Message-Id: <20190115153656.10913-1-jkhasdev@gmail.com> X-Mailer: git-send-email 2.13.6 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); -- 2.13.6