From mboxrd@z Thu Jan 1 00:00:00 1970 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=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,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 BAAF5C2BA83 for ; Fri, 14 Feb 2020 14:59:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 97E2224649 for ; Fri, 14 Feb 2020 14:59:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729260AbgBNO7D (ORCPT ); Fri, 14 Feb 2020 09:59:03 -0500 Received: from sauhun.de ([88.99.104.3]:59630 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729241AbgBNO7D (ORCPT ); Fri, 14 Feb 2020 09:59:03 -0500 Received: from localhost (p5486CB48.dip0.t-ipconnect.de [84.134.203.72]) by pokefinder.org (Postfix) with ESMTPSA id 89E792C08AB; Fri, 14 Feb 2020 15:59:00 +0100 (CET) From: Wolfram Sang To: linux-i3c@lists.infradead.org Cc: linux-renesas-soc@vger.kernel.org, Wolfram Sang Subject: [PATCH] i3c: master: no need to iterate master device twice Date: Fri, 14 Feb 2020 15:58:53 +0100 Message-Id: <20200214145853.24762-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org We already have the master device in a variable, reuse it. Signed-off-by: Wolfram Sang --- Found while refactoring of_i2c_get_board_info() and checking its users. drivers/i3c/master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c index 7f8f896fa0c3..b56207bbed2b 100644 --- a/drivers/i3c/master.c +++ b/drivers/i3c/master.c @@ -1953,7 +1953,7 @@ of_i3c_master_add_i2c_boardinfo(struct i3c_master_controller *master, * DEFSLVS command. */ if (boardinfo->base.flags & I2C_CLIENT_TEN) { - dev_err(&master->dev, "I2C device with 10 bit address not supported."); + dev_err(dev, "I2C device with 10 bit address not supported."); return -ENOTSUPP; } -- 2.20.1