Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5002670imu; Tue, 15 Jan 2019 09:27:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN6HL1qppBx0ORlYkPJbvMqdlWOp/p99IBzsMzaXs4O2QdPWj3zzHysnwVuuDVUM1rmg0oa7 X-Received: by 2002:a62:9111:: with SMTP id l17mr5126759pfe.200.1547573256489; Tue, 15 Jan 2019 09:27:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547573256; cv=none; d=google.com; s=arc-20160816; b=mzYHhHWb6yIKIk3D1+CVysdtyW56qV9xxiVJbArf+kc8dAqAc9t07y53ToJihIb1NF tg3/+RITsG34hCgplxRZU1ajFOmYcsnCX67TkHt/2ttu0/xG5LtRjfrjBoTIdMAI9AI1 LZAS/+Lzl80uFwvgT7OZhr/a5ktUVLSe2R93lr4XCNQSubQ2aIoguR0D1kz8aK7e2E1T koJwElu2hHjXxP8Rk27InWf0qz8Bc1PMjBIox4tm+GFh7d6bXCMO3lx1UuAFIflv8Ulq X8Lfnq+8zzOAz5tcphx2IJbmvexZTXv8fj/E+9JmpiEqxtSu8FguJ2dCIajyO6KDVj9Q UfEQ== 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:cc:to:from :dkim-signature; bh=FZJ/W6IU+NugTJlhoy6sFEcrGJ45mAFB8SnfVQu5JsA=; b=T5zrr+aJ6i9hX5pRppLRobYMOK0u88f9BxViILJyfZYF+SSTTH4rCakJn7O/HW/00x P7GHq2GXxL064vfn9ys8DzV8X7/8XPl8W20YJ3Nx0PpO8sTQs+F4ic3eF4DWxtR5YhzV pvsPSatm5L0WqW1Pkh+LLs7acPv9yjCjHJCaqErkN0GE/uDXhR5oDdKvPTC9SHZtsDZX UxTUm+IXbOUllVUd4pn3ezjx4NxOpbP9J4K3Kb6xErU/VBDUW11orYHrJbP2O2NABw68 P9EMtqiZOE5cRcs801+8iEJ7yRPTMk8JuBcKS0jYxUnxmQfUrRcx43AknABWOTBewuVK dEWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QeA46feM; 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 24si3665448pgm.167.2019.01.15.09.27.20; Tue, 15 Jan 2019 09:27: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QeA46feM; 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 S1730517AbfAOOv3 (ORCPT + 99 others); Tue, 15 Jan 2019 09:51:29 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:42294 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727307AbfAOOv3 (ORCPT ); Tue, 15 Jan 2019 09:51:29 -0500 Received: by mail-pg1-f195.google.com with SMTP id d72so1330960pga.9 for ; Tue, 15 Jan 2019 06:51:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=FZJ/W6IU+NugTJlhoy6sFEcrGJ45mAFB8SnfVQu5JsA=; b=QeA46feMbsPssFCfDlMoK2l1aSTmugMu6TMFj7d2E/kcppFRMDLd5vRlu9qA9RU0JO kdv2dvlecJ3TSxIfq/6Hb6NMiIKDC3wGdg/Sx9NpRH/MYmn8yT6YzzWODcSOpL7BvBt+ +r9BJaDFfYcA6N/ZkBKMYWvrtM7k4E799chy1zk742GvvShh3BR0fQGY97kMFUIom3UL MuirhE1bg7AL2YdoRQbnTy3A1Oo4+12LeCbWQZbLhmLOmAmGY5y7h4Z06h+Cv8ABlIeA KgcocCsLlW5lIikJ5Or/63sNdlMsPBicvVBRTIs3umgBDzvZ1qLXeXO3d2HHzLros47Z keZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FZJ/W6IU+NugTJlhoy6sFEcrGJ45mAFB8SnfVQu5JsA=; b=MjBC2Vb1wXPvyAnjjeJWlQ5k4P3ukV2DabQx2lDuLE78/suR4zesJnx3tMQOV5C4N6 LguHrDYX6zFA8Ub0GsX2aGuAs+HB+Xvg0euTcpSFm3rX2sodEAicyexQJaReLZRGj6/Q e3wAHI45ypfkJkQOtnkur7h2lAP3Yw7dAjd+qNspBRrqiQqjpQ7qqUA5H/MGWs1b+L49 KXkb5CqPiELUE8rXQjV3s1yawkxecKQTeNC6ggEJqQ0VS5tpFfvp5Pw0biFc1o8AGkjd qn9YerQEFFQnuBMG2RKfAnji58UAsJB5xgmfRlR759BBuZ9PKVw6iPSCh25LObS5PmHy B+Ig== X-Gm-Message-State: AJcUukc+tfPqF/F713SDqRMidj5pmrjsjkXWu8FGulbFWnUPCmRv6mLH fnwFq/o3TCXy3IS8yLWN5as= X-Received: by 2002:a62:5793:: with SMTP id i19mr4440505pfj.49.1547563888146; Tue, 15 Jan 2019 06:51:28 -0800 (PST) Received: from localhost.localdomain.com ([203.109.101.34]) by smtp.googlemail.com with ESMTPSA id h69sm3822157pge.4.2019.01.15.06.51.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Jan 2019 06:51:27 -0800 (PST) From: root X-Google-Original-From: root To: abbotti@mev.co.uk, hsweeten@visionengravers.com, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Jitendra Kumar Khasdev Subject: [PATCH] staging: comedi: Removed not necessary braces for single block Date: Tue, 15 Jan 2019 20:21:08 +0530 Message-Id: <20190115145108.10249-1-root@localhost.localdomain> 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 Kumar Khasdev --- drivers/staging/comedi/comedi_fops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index 5d2fcbfe02af..0caae4a5c471 100644 --- a/drivers/staging/comedi/comedi_fops.c +++ b/drivers/staging/comedi/comedi_fops.c @@ -1605,9 +1605,8 @@ 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