From patchwork Sun Apr 3 14:53:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 12799629 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 6A761C433F5 for ; Sun, 3 Apr 2022 14:54:48 +0000 (UTC) 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=RGQaQ0uJjrWtf2c6CaE/GRifVSktmr53/EX/RABFIEM=; b=aqCxmUVCJ72Aa4 xuDiGYcjzB18VCKq7VMK7w7NcK6VWGJdfTkTZoB8E3jgYcv1qYNzvmAYUyvUL6JBU7u35LWVTVTj6 N4sYs4Wkviwfk1O0AHzf8kcCY/xDnEykKrl5cJgy4e3L9vdpcWhwsllZi3+ek1g+XEgkwj7ONtKfj OJ/+mGyuZCs61FBcokQB+EvXpoPjwpq8A7n0RnhMoyC9c+UuIsyxe1in6e1mJ+u1779Fd2Z5EbwHP ypcCzgy6lJNy8a+6TEHSKPfIIdAqNhWjnN0oRCwIRLn9jkxzoCzHt37H2M6AhEQdJFcCqXELg7oc0 qGfeljCIPPYG6ncbDrWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb1bR-00Be8G-UN; Sun, 03 Apr 2022 14:53:18 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb1bM-00Be7E-RU for linux-arm-kernel@lists.infradead.org; Sun, 03 Apr 2022 14:53:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1648997589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LFfRhd7Sfzdrdd1INj/Q/SqPdx7gABrZJOzXKbno2vQ=; b=Bltn6SAjj3u4jvpNet77vV2zauN1bYG4PloxhQJIVD8DobLo5L5qWUAPyflD+ljcnjQCgC SJwKNCRJsTbn210zrPIuV/aBHPyknENMObFBPlmBU3GMBvWhCZWHXuCFWY1JUO5FXyNkL1 ieyy8SWBkiUnr9vyIyTh+PEkjfIBeh4= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-442-3EHEc_r7NSWVUsSQnFrl8w-1; Sun, 03 Apr 2022 10:53:08 -0400 X-MC-Unique: 3EHEc_r7NSWVUsSQnFrl8w-1 Received: by mail-qk1-f200.google.com with SMTP id 207-20020a3706d8000000b0067b322bef9eso4871601qkg.3 for ; Sun, 03 Apr 2022 07:53:08 -0700 (PDT) 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=LFfRhd7Sfzdrdd1INj/Q/SqPdx7gABrZJOzXKbno2vQ=; b=TmwW9WWvLd7io5EpD5vPig/lISQOKXmGHUuPTsWF535eke0BPTRbCHAA0w6Sg6uEyj kYEtxUUZLaW3c0B9a+e0gYSYQz2FTtq6/mZ1Q6E89LS7K2uf4EuUJHhWdMqHQhl0RAi0 bdj/y14c74y02+mcdhPqAtorP4ZZQIK4BOmLL+mzEt1nzARHRMUk4sGl5D/r6cIuylh7 iGLgGuC+J5f9TGkl1pFBgITPZJzOILzFXg8j1OFiKMSFU/yPk+1522DUQTWjl/KwzK9N VLo91VnK/wwlP2docmufm1wj4LBHrx0hbXG0/BQzRXSFwzt5hBv3uCCQH6SF0rBn5+2D orZQ== X-Gm-Message-State: AOAM533smzNyn4UHuyE7FwYVcUabqHuc7czj7DAfAC43LT0U9e8Zx3NR kpu/BRYzDANiuvkKSihyQo4oOkbvfBpSk1HSTGDlTzGeLEDmwvI2uxxyUkyCP98UMPFFJQBFacL jdzwi8sila7ebZOux6VZhX24BBHy7rNg3IsQ= X-Received: by 2002:a05:6214:e69:b0:441:75c6:92d with SMTP id jz9-20020a0562140e6900b0044175c6092dmr14307330qvb.99.1648997587973; Sun, 03 Apr 2022 07:53:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/HIvXI8os8Ml55FFBb0QLFbZHcrRmId+ROUfy4QTy8ixdqR3vv+seVxFOAOcakl/b5zqGAw== X-Received: by 2002:a05:6214:e69:b0:441:75c6:92d with SMTP id jz9-20020a0562140e6900b0044175c6092dmr14307317qvb.99.1648997587813; Sun, 03 Apr 2022 07:53:07 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id x6-20020a376306000000b0067b32a8568esm4716651qkb.101.2022.04.03.07.53.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Apr 2022 07:53:07 -0700 (PDT) From: Tom Rix To: jassisinghbrar@gmail.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tom Rix Subject: [PATCH] mailbox: imx: remove redundant initializer Date: Sun, 3 Apr 2022 10:53:04 -0400 Message-Id: <20220403145304.685443-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=trix@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220403_075312_995744_C2F929E6 X-CRM114-Status: GOOD ( 10.14 ) 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 Smatch reports this issue imx-mailbox.c:887:10: warning: Initializer entry defined twice imx-mailbox.c:889:10: also defined here .rxdb = imx_mu_generic_rxdb, Is listed twice, so remove one. Signed-off-by: Tom Rix --- drivers/mailbox/imx-mailbox.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index e88f544a1548..df8a785be324 100644 --- a/drivers/mailbox/imx-mailbox.c +++ b/drivers/mailbox/imx-mailbox.c @@ -886,7 +886,6 @@ static const struct imx_mu_dcfg imx_mu_cfg_imx8ulp = { .rx = imx_mu_generic_rx, .rxdb = imx_mu_generic_rxdb, .init = imx_mu_init_generic, - .rxdb = imx_mu_generic_rxdb, .type = IMX_MU_V2, .xTR = 0x200, .xRR = 0x280,