Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp58185lfv; Tue, 12 Apr 2022 17:10:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZHDi48ikhqK2npjqQmBtpvmTe+/CYOFdy5ynEbLwrsOJn4Xkt7kJ5mQhL0dycFwCyKz4k X-Received: by 2002:a17:902:aa88:b0:156:914b:dc79 with SMTP id d8-20020a170902aa8800b00156914bdc79mr39884887plr.138.1649808624799; Tue, 12 Apr 2022 17:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649808624; cv=none; d=google.com; s=arc-20160816; b=X861/xhJTXirrbvjqV8xRptSgXvJ8SuKa13kHubMuerDG5Q+PopqpwzKqFruWEHoEP +Yq9QJbcTELDm87GaQ2iBKjf4JQav5znJQPnADeB4vUIvbQO+X+hNwpLKy3D9Z5S6SNn eya8Kwq0Et6UG8rCpTxYfzUbKlfqVDNnNBHKS+bz+BZ+4MO72pIScsCoJNkq1jCfuGo4 n9MuEWqskQVAieZBZxVJ2PCOB4o8gXZDKwTWcYaBzrfTm2NSDnXU8VMCroo83bCpBkhe ELobwYFJkasHAd0k89YcA7bQ7RGFwFvXxYUIKStTi6LVa2jy9qbi6ZrLjWfIlHV65lUp zAaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=3UaJrwZ35b5PfLiZGtmO7k6+jGdgy3u8eolCyPOX7Bk=; b=Y6+2NiVm+N7icIcW5zkK3u2ESx1LChf51/hHppgPdpG803CMMAO0u3iw3Y2r7jb0Xi upNOolMVa0l+xY9wizbr2A+wNXhEL7a1C3yPhAVrkaS1Z0GKnokMZ0ElfOehLLd37cxE JaCo0itnkTgiGIbGpF2y3B0GsQkR+6olj58PHm+IV/eX/5tSIA+8Qp8TXINymajI1B3n ua2RlL+9JXxtpxmpClJw8kF9mOvmAYCL8n09T/tXqBYlFZAdIbNIurOPbQgPaQMc0hna 9BnucG4Nfp+KHSfMF259u4P5392EQj2iVqOoCe5OSjaRc/YcJRJddjNdnPyee/TiFCmo Z/NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=WAn0BHpI; dkim=neutral (no key) header.i=@suse.cz header.b=V8KzJC8C; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w5-20020a056a0014c500b0050600e222a4si2930108pfu.222.2022.04.12.17.10.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 17:10:24 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=WAn0BHpI; dkim=neutral (no key) header.i=@suse.cz header.b=V8KzJC8C; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C80CF152807; Tue, 12 Apr 2022 15:26:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345695AbiDKKri (ORCPT + 99 others); Mon, 11 Apr 2022 06:47:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345684AbiDKKrZ (ORCPT ); Mon, 11 Apr 2022 06:47:25 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2734E12AF9; Mon, 11 Apr 2022 03:45:12 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id DC90B215FD; Mon, 11 Apr 2022 10:45:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1649673910; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3UaJrwZ35b5PfLiZGtmO7k6+jGdgy3u8eolCyPOX7Bk=; b=WAn0BHpI1gjrWAB2lZTv6/O863lJPaj+fkkxp9elG+Y23v1HIpKZkN39HG4HC5YyUIq+x/ 5oZkQJ1pheh0Cyo/6dub+XCm+DB5ayJ0ukYDaMujhVQx2Ds1+He5rMDGreZkwRWuN5Jfj1 d4v9Zp8IgppQQ0kF0vMpHEEOeIjNxis= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1649673910; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3UaJrwZ35b5PfLiZGtmO7k6+jGdgy3u8eolCyPOX7Bk=; b=V8KzJC8CDfB1m4EVRw7Zzz+GDlgn2EueI8gPP6kCEUDh6GmZcZrUqLNZUejFmaSJ6CLH5B 4x7OHYwFBFpAh6CQ== Received: from localhost.localdomain (unknown [10.100.208.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id A985DA3B89; Mon, 11 Apr 2022 10:45:10 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby Subject: [PATCH 1/3] tty: serial: mpc52xx_uart: remove double ifdeffery Date: Mon, 11 Apr 2022 12:45:04 +0200 Message-Id: <20220411104506.8990-2-jslaby@suse.cz> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220411104506.8990-1-jslaby@suse.cz> References: <20220411104506.8990-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The code now contains: #ifdef CONFIG_PPC_MPC512x ... #endif #ifdef CONFIG_PPC_MPC512x ... #endif So remove the endif+ifdef from the middle, provided it's about the same define. Signed-off-by: Jiri Slaby --- drivers/tty/serial/mpc52xx_uart.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/tty/serial/mpc52xx_uart.c b/drivers/tty/serial/mpc52xx_uart.c index 3acc0f185762..c4b590dd6f23 100644 --- a/drivers/tty/serial/mpc52xx_uart.c +++ b/drivers/tty/serial/mpc52xx_uart.c @@ -754,9 +754,6 @@ static void mpc512x_psc_get_irq(struct uart_port *port, struct device_node *np) port->irqflags = IRQF_SHARED; port->irq = psc_fifoc_irq; } -#endif - -#ifdef CONFIG_PPC_MPC512x #define PSC_5125(port) ((struct mpc5125_psc __iomem *)((port)->membase)) #define FIFO_5125(port) ((struct mpc512x_psc_fifo __iomem *)(PSC_5125(port)+1)) -- 2.35.1