From patchwork Thu Jun 4 15:39:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gustavo A. R. Silva" X-Patchwork-Id: 207537 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=-8.6 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_SANE_1 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 6696CC433E0 for ; Thu, 4 Jun 2020 15:34:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 43430207F5 for ; Thu, 4 Jun 2020 15:34:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591284894; bh=rs0GNkt8SntMYjYE6m+6lgJMsGQHlA2pghWlb63HaGY=; h=Date:From:To:Cc:Subject:List-ID:From; b=FwMVXFQPzNlnIVmpm+cDW7nl9Zmd4D+Qv9vHxMU6GCYrChhYlPV9FST0enBJ7Sj0i 3RC/d7S+QFe3lJc706ExcXZQk70XbI2tE2HrJeYHRIOlpGN9rZuDMV+hKL6OZ6OPjv 3ikQC3UtkFtXFodjE3IRrm+b0JFoz4zjSM43evf4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729590AbgFDPex (ORCPT ); Thu, 4 Jun 2020 11:34:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:48622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729309AbgFDPex (ORCPT ); Thu, 4 Jun 2020 11:34:53 -0400 Received: from embeddedor (unknown [189.207.59.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 98E15207D8; Thu, 4 Jun 2020 15:34:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591284893; bh=rs0GNkt8SntMYjYE6m+6lgJMsGQHlA2pghWlb63HaGY=; h=Date:From:To:Cc:Subject:From; b=k4CGIXl9fBOwmAX15L/MOGoGsvuGwga6LvktexVdBYvZDHp/IqBgshGYyLfXWbD9V 3XCRQ84H4uH+1eWrxys+zyZu0arhxoWO5hyCel5yas+F8hjdY8AaXzUb/pGK73LmFk TCCoERoQ6hQnS6uAEIvrAW/COwBe/9GCCoiO/e+4= Date: Thu, 4 Jun 2020 10:39:57 -0500 From: "Gustavo A. R. Silva" To: Tali Perry , Wolfram Sang Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] i2c: npcm7xx: Remove unnecessary parentheses Message-ID: <20200604153957.GA14839@embeddedor> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Remove unnecessary parentheses around _bus_. This issue was found with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/i2c/busses/i2c-npcm7xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-npcm7xx.c b/drivers/i2c/busses/i2c-npcm7xx.c index a8e75c3484f12..68951a293aae3 100644 --- a/drivers/i2c/busses/i2c-npcm7xx.c +++ b/drivers/i2c/busses/i2c-npcm7xx.c @@ -2248,7 +2248,7 @@ static int npcm_i2c_probe_bus(struct platform_device *pdev) bus->reg = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(bus->reg)) - return PTR_ERR((bus)->reg); + return PTR_ERR(bus->reg); spin_lock_init(&bus->lock); init_completion(&bus->cmd_complete);