From patchwork Sun Sep 12 13:37:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaston Gonzalez X-Patchwork-Id: 12486923 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24066C433F5 for ; Sun, 12 Sep 2021 13:40:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D847A610A6 for ; Sun, 12 Sep 2021 13:40:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D847A610A6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=soK3BhmKKzRL3N3JvUF32kzXLiZulpVw1/fL2NOekw8=; b=OVwWdZox/yW8gD i9vpiNOHYQ9WtJFbrpWadASfQK8fUQeWAbImkGnqD4FA8aHM/GrcuJmXvHOG39IoVg+8DCmYlVV/R VqZwPnVMLlWHDcfMz7Up0ojXa1USWVkGAECMO6Tq7UyYF0FsV9HATzbZJxoQ9cTYyGldbhUHxmhzr s9U01ZCeQo1SnpXel2OvgKku6gBv9lUhRCdEl4ZX1VtQjET35IazBEJFoqObbsOjDgFT3j0d9+KRI 5VxpNLqb+rt7Hd4OAQg99p+qicrV4kgDzqMZpD4pNjeBK8hXWMDlNGUE5O6onGKapqXhWeNNo9Lfn tmSsT2o+7OcjeWaYYCtg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPPhE-00GTtx-SX; Sun, 12 Sep 2021 13:39:01 +0000 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPPh9-00GTsw-Hz; Sun, 12 Sep 2021 13:38:57 +0000 Received: by mail-oi1-x230.google.com with SMTP id q39so10378238oiw.12; Sun, 12 Sep 2021 06:38:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=O5ZWGZmPnammQ04Toa5uVC3kIpyJsyrgJg39bwT6488=; b=IOsk+hvpEYnvUmtgxv+3zhefOSuJqSbkV8JnhMqNpoTFlAAny766aYeMs8aeaJFIq+ QbNjJAYcaSiQjoe1FlgTeW96zaKBwZHshnt1D1UTgvydoQVoG7p63L02AHtlsB5OW7lz 7YEGRX/AUsVkHQJixisAHwGbcTD/K2DbP8IBz+huCSFzEp+xn+CB6uiCr5clFuvLmJti ix2TWb0CqP8xyK+zvvMuN0f3TVLVB/hcTOTrP4nWEkmT6eCWikHzwPAaG2TuoPnBYm5F R7mXYhfh4XD/XqKsYGqhvA3MxV19N1s+WqWJikojfCXIx+IQyMgO3/2EqtwV8RJkGIvH +XFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=O5ZWGZmPnammQ04Toa5uVC3kIpyJsyrgJg39bwT6488=; b=LbiGZeLZghQRfHLFfcTUqsdRfWVeYDGPYuDzAtBYGtA6wYgiJlsrSY06q6qP5Nwq0u tMquKVu5pqiV4wNWQAL8ilIolhzKeEQYAKkIBtlaaUzUP6A/7omXeb8W2h1snWo8ueNn A24pzDZeVLK1ZBs2j2NZZvW1TCXMN2QB3vrHnuMQ15Vp3nKBLbBiJvxi7594obHNZT5C VozaY5G1gZ9RPhZ/7YIIC0StWQ4UTB4tots8zsRI3YTBhlft2Yle+02WFTeREUJYmefk KL1CP4E54lym+2c0rTS8Tjvg4/sxmf3xMPiOah10JPN8ZH07QvlvimsYF/yvk1ELZZPz PinA== X-Gm-Message-State: AOAM533VheueXOy40ovTJUOtyfOAH4Yq1rOt46CiBLKevYJH3jMe6VS+ YVfBdJcYIMe68mZvipri9UQ= X-Google-Smtp-Source: ABdhPJyAVNxu9oL4gcklUE+FcSb5eLgLwLCJZhG3eBTWK+U1uAqSp4QI/5iiwnXlQW7Q+YgqGgwL6Q== X-Received: by 2002:a05:6808:1910:: with SMTP id bf16mr4617945oib.56.1631453931619; Sun, 12 Sep 2021 06:38:51 -0700 (PDT) Received: from localhost.localdomain ([191.84.239.65]) by smtp.gmail.com with ESMTPSA id a15sm1131853otq.13.2021.09.12.06.38.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Sep 2021 06:38:51 -0700 (PDT) From: Gaston Gonzalez To: linux-staging@lists.linux.dev Cc: gregkh@linuxfoundation.org, nsaenz@kernel.org, stefan.wahren@i2se.com, arnd@arndb.de, dan.carpenter@oracle.com, ojaswin98@gmail.com, phil@raspberrypi.com, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, gascoar@gmail.com Subject: [PATCH 1/2] staging: vchiq_dev: remove braces from if block Date: Sun, 12 Sep 2021 10:37:50 -0300 Message-Id: <20210912133751.269885-1-gascoar@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210912_063855_652282_598C2A35 X-CRM114-Status: UNSURE ( 9.14 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Remove unnecessary braces from if block. Reported by checkpatch.pl Signed-off-by: Gaston Gonzalez --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c index 788fa5a987a3..c990d5d7bfb5 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c @@ -447,9 +447,8 @@ static int vchiq_ioc_await_completion(struct vchiq_instance *instance, DEBUG_INITIALISE(g_state.local) DEBUG_TRACE(AWAIT_COMPLETION_LINE); - if (!instance->connected) { + if (!instance->connected) return -ENOTCONN; - } mutex_lock(&instance->completion_mutex);