Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp252277rdf; Tue, 21 Nov 2023 01:24:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEj1e+76KzgdRez7BAc4vJ2luQzYv0z2/ahanI7x7JJK1I7Qa2RM7KCPi09xnvCsrbj6PIn X-Received: by 2002:a05:6a21:1a8:b0:187:4118:140 with SMTP id le40-20020a056a2101a800b0018741180140mr2980674pzb.24.1700558666538; Tue, 21 Nov 2023 01:24:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700558666; cv=none; d=google.com; s=arc-20160816; b=TvK7OmJ5NdhlfXOYt0lxdCNRJNSUHcfciU9+Wtx8uanlNWuKmpQe+Z/2zqZPCAF9Wt oC5DO9YErLvBghK498M2GLojjnz89s2/IUEtyYoapymRCryFmMweEGqXBFOQShlTReLj K8OrQWujVhqmXLAg9lMAXawdcSLH+OxGxeMSYJOoA5a6Ty9MFNUtruSPIpfEIdcE9LkR aeGuD2Bw7z4qOfoLemL56HYj0osoGzJrFD6UKA/C+cB7p0NUJONb9B6TZNo+gRpaV6Rn nKJQK4Zl/ZlM8SfBwdr00qCnQlnyakeGNI7WOgceIZwc8vyzpppklvPkudpDugL7V/Vo Nvxg== 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; bh=hydWKltkYXGMs37UxCb0hotXx33h/RyaMKE8MrqoQi4=; fh=1YNwm5KBWetjB3qGkhgLqh/dZnCTsWuqRk83JW6hjgE=; b=B3XuAKq1+cSNwo0BwnsfgLJPWDwtiTLjOdJy53n+06m/nTfYh7XWosAMOCa2afxBw4 JCRWAn6tlsrQrAjQh39Kb9tL/HWZTQim2HN1M462p5/vtScMtkS2VlCc0HovrCKavTBl bDqI6rQCJCH1L4D4e5a7Bf+rOdT1s719ruVOeLmWKBakLXG8LRGB2Pp8CuBllaAR5Abf eMZRbZnVqPT/VFPAKnsE8AMpRfUDj9UQmMWmOo2sZfO2PjfO46ouknc4D7fa0uqYO+mb vHEmC5oybkOJl7wZlORAtj6gadycsr9nkwooOp4XSXOb9O+mo3tSKkF31QQErHPxTBXW HrZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WIeSXUZT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q14-20020a63e94e000000b005898cf1c6a0si9838955pgj.324.2023.11.21.01.24.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 01:24:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WIeSXUZT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 65EF980E73ED; Tue, 21 Nov 2023 01:24:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233613AbjKUJYE (ORCPT + 99 others); Tue, 21 Nov 2023 04:24:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233617AbjKUJXq (ORCPT ); Tue, 21 Nov 2023 04:23:46 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C20D511A for ; Tue, 21 Nov 2023 01:23:25 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06674C43391; Tue, 21 Nov 2023 09:23:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700558605; bh=422VxiK87dzWUOJytz3EHqN1a+RdqnMf/xYBks1K7os=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WIeSXUZT5Zd5gFDKfkN2dEKBartK8soImgPbg3Uw3mVQJGUDkMXZjRr1FVhiWsEBf mI01vMF8t9qicENnYiI8BcFj0H5r9gHIPA6fM3DLtQTboflHR77aRN8HXEWwBiduvJ EwhIrWEMWNmKMAy476pHRxEUgq/PNfx3VwHRkuYdplHm7VmlqcCuGr6eJq8i6Mg9v3 XAPHv9sA7Gi7FqPgIusC9aKm3YX1piTyGc+IqlITUw3N3u4DGEBlNG15EUpkBsGS4j tP6mb8x8tSnUy84ZCeDHhxXkUFHFS0MV7FPHmCc9fb604bzuiQr998K6BHVcQiipxh cOAWxcm3u32cA== From: "Jiri Slaby (SUSE)" To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" Subject: [PATCH 12/17] tty: nozomi: remove unused debugging DUMP() Date: Tue, 21 Nov 2023 10:22:53 +0100 Message-ID: <20231121092258.9334-13-jirislaby@kernel.org> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231121092258.9334-1-jirislaby@kernel.org> References: <20231121092258.9334-1-jirislaby@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 01:24:14 -0800 (PST) DUMP()'s only use is commented out. Remove the macro completely along with this unused use. Signed-off-by: Jiri Slaby (SUSE) --- drivers/tty/nozomi.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c index 02cd40147b3a..b247341bd12f 100644 --- a/drivers/tty/nozomi.c +++ b/drivers/tty/nozomi.c @@ -65,24 +65,8 @@ do { \ #define DBG3(args...) DBG_(0x04, ##args) #define DBG4(args...) DBG_(0x08, ##args) -/* TODO: rewrite to optimize macros... */ - #define TMP_BUF_MAX 256 -#define DUMP(buf__, len__) \ - do { \ - char tbuf[TMP_BUF_MAX] = {0}; \ - if (len__ > 1) { \ - u32 data_len = min_t(u32, len__, TMP_BUF_MAX); \ - strscpy(tbuf, buf__, data_len); \ - if (tbuf[data_len - 2] == '\r') \ - tbuf[data_len - 2] = 'r'; \ - DBG1("SENDING: '%s' (%d+n)", tbuf, len__); \ - } else { \ - DBG1("SENDING: '%s' (%d)", tbuf, len__); \ - } \ - } while (0) - /* Defines */ #define NOZOMI_NAME "nozomi" #define NOZOMI_NAME_TTY "nozomi_tty" @@ -754,8 +738,6 @@ static int send_data(enum port_type index, struct nozomi *dc) return 0; } - /* DUMP(buf, size); */ - /* Write length + data */ write_mem32(addr, (u32 *) &size, 4); write_mem32(addr + 4, (u32 *) dc->send_buf, size); -- 2.42.1