From patchwork Mon Feb 18 17:22:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Seiki Oshiro X-Patchwork-Id: 10818515 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9DB931390 for ; Mon, 18 Feb 2019 17:23:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FC712B080 for ; Mon, 18 Feb 2019 17:23:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7DB492B642; Mon, 18 Feb 2019 17:23:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2053A2B74A for ; Mon, 18 Feb 2019 17:23:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728216AbfBRRW5 (ORCPT ); Mon, 18 Feb 2019 12:22:57 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:41103 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391110AbfBRRW4 (ORCPT ); Mon, 18 Feb 2019 12:22:56 -0500 Received: by mail-qt1-f194.google.com with SMTP id v10so20023569qtp.8; Mon, 18 Feb 2019 09:22:55 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=wnd0daOjkL1mxcba7BCdyMifBpTS8qKynRF6o0d3oE8=; b=rlPuPyf5SrZuZepi5oNcgzAN3HM0ltOeom+SFnIPr/y8soDL1hzJQbB7GcuYQc77Wf x4b6JsXUOwiaGQWepP5d3RLM7P1WKfk5rluhNGMiewuoX+uq7mkM1uDZLPPQDbKkTP1B CAtqooVE2PLkoLQyduqQQBczFGMoiSzCxnGJrRxApX8DrLzidFzFM6thNwsu1ixq0iLw bRboTiC22fcIrQorc6BRPHtW9GEQe8tJGmo3t/xKQWbrWIhZLF4H+pVgglqZscZlyQVb +S38vW+GVwTqjUfek8tAz6iEuubht2EBVVF7SuKL+CnRxFFe/jwu+yq3gDary8WpZsOb Pxsw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=wnd0daOjkL1mxcba7BCdyMifBpTS8qKynRF6o0d3oE8=; b=RCyUFH5ynvF3nhP1m8C/EuZ9HXwaZPfVYz/WKB38BcrZWNd7Nd1jL0uqjjuDf/Ne4j rXgpSgQuaFqPkn6AesmfWQGlWloQ0e6/gL5GyXnFswzN5smG9dDwHBndEZjMpkCVn5/Z cUKl53bORfmyGm+fZ0WJulujtKkQVf4LvX4/2WSrSmTEHIrjdgaP3HNxOwh3B41hLC7p eZ6WzwjtpKHQHXMIswBNs9XDqRNXMSquFtuAQ9oD10KrP6PC3g96EbQwgxBeSDzZNey7 wZv1LAD+dc8v6U4O5gm4PQ5O7234IrGHvSC9o75gxlksXnND//uKGdmQMay7y3FTC3PA sSKw== X-Gm-Message-State: AHQUAuYm7iqivS/9X5PkeKk0AcSAzTiF/hkBLuvf8zHdoD+FzGJpxusF mAtE4OHG+GhWVH3NXOejVL8= X-Google-Smtp-Source: AHgI3Ia9fr1hBOPYc5iEnc1+POqVGP4rCPzxI7bxXNEIfCNbFICz8W1jVtw69lfFY9szRdPPD2jJ3Q== X-Received: by 2002:a0c:d1f4:: with SMTP id k49mr18582970qvh.164.1550510575386; Mon, 18 Feb 2019 09:22:55 -0800 (PST) Received: from wall-e.ime.usp.br ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id v18sm6525275qkj.13.2019.02.18.09.22.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Feb 2019 09:22:54 -0800 (PST) From: Lucas Oshiro To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com, Anderson Reis Subject: [PATCH 2/5] iio:potentiostat:lmp91000: insert braces around if arms Date: Mon, 18 Feb 2019 14:22:33 -0300 Message-Id: <20190218172236.7781-3-lucasseikioshiro@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190218172236.7781-1-lucasseikioshiro@gmail.com> References: <20190218172236.7781-1-lucasseikioshiro@gmail.com> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Insert braces around all arms of if statement starting on line 214, and solve these checkpath.el CHECKs: - lmp91000.c:214: CHECK: braces {} should be used on all arms of this statement - lmp91000.c:216: CHECK: Unbalanced braces around else statement Signed-off-by: Lucas Oshiro Signed-off-by: Anderson Reis --- drivers/iio/potentiostat/lmp91000.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/potentiostat/lmp91000.c b/drivers/iio/potentiostat/lmp91000.c index 03d277621861..ca31be510940 100644 --- a/drivers/iio/potentiostat/lmp91000.c +++ b/drivers/iio/potentiostat/lmp91000.c @@ -211,9 +211,9 @@ static int lmp91000_read_config(struct lmp91000_data *data) ret = of_property_read_u32(np, "ti,tia-gain-ohm", &val); if (ret) { - if (of_property_read_bool(np, "ti,external-tia-resistor")) + if (of_property_read_bool(np, "ti,external-tia-resistor")) { val = 0; - else { + } else { dev_err(dev, "no ti,tia-gain-ohm defined"); return ret; }