Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2568661rbb; Wed, 28 Feb 2024 06:06:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXgL8cdsGk9FX3bY/NyI4AQDguVSHM7BNy/rY9Lk1EuJPt8NFGjXTZaC4ESHQwkXUSC4iwveXozmLLJkwRkWQM9ZJLlyCpxw53DshzjTw== X-Google-Smtp-Source: AGHT+IE62Rmrw6JssQrcD3z7eCnAW3Yr3COCbvLl5T3YSoGASpicuEILjcYYa2W7YxmmOYg3iDo9 X-Received: by 2002:a05:6122:d16:b0:4d3:3334:f2fe with SMTP id az22-20020a0561220d1600b004d33334f2femr2108886vkb.1.1709129170956; Wed, 28 Feb 2024 06:06:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709129170; cv=pass; d=google.com; s=arc-20160816; b=UKuvNuY09GvQn592ihdYL2ZqBqWKlA3I2Qq4FQxNOWWR6/b4sHa6Od+q8UOUPVwIN/ Z9MwbvVZNdTp17hiOjQk9a6qkmTAwjj3yJIUltqmisieTBHLgtJPOd6yVNfM8HlEvW+V 9pZJ7o4cvV1yzZjON1TNE5KUPWLBXnD+tbCC/te8ynw2qcHyfanFhuBQyTkd7WZ9QU3C h39fbaeNUeJ4M+rkiuzf28Hw0/5nu14StLy4mnR78jpwm2yj6NKVYMaRCuSHR/ta5xkk F83UdH3t8drJHWohdLhIuTJuMNYEoLnkLdbxK8saGr7bTqzDh0YjARuybVCIbzeVNmW7 kKjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=sJXD3mVPz9SHS3T8gteIaHE3QF87ZFbCVvpYRepv0L0=; fh=pROKrtudychdWfX1/6j/Uq9afXUKMuzpYQEwL/mZsxw=; b=sP/XQ/PT5RMhet31y4yIA7yBNXVnUXHYy4zbZCDYU0WrDHJBGzPOkwxGDFuxUE+diu NpoX59HkUbF8mBTFQiF5Gi5BJo3umgdEmd2GfeZS49mhvioNHbpyM6eJswZ6P+kB7Zsd UWTkGMA3HuoYQVOTIID86BJmSg88Yz47ijGPw96q3QQBVgDFEZH1kRk0AE5K/PhWs9pL HNJ3nIC+oFf8B5ybI4eyQSVzm2ttE/TSZgfPfkE6lPhrV3CaiCX80lFqCt1mcV68RZow YsuS7cEkG8PvAePR1sUOOf8eaHT2Gbierlg/zR/RRllWb6z22X+WC1IjLXv49MAh8snQ TmNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-85156-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85156-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 15-20020a056122084f00b004c806d987bcsi1039027vkk.70.2024.02.28.06.06.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 06:06:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85156-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-85156-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85156-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 66D9C1C22C78 for ; Wed, 28 Feb 2024 14:05:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C75673519; Wed, 28 Feb 2024 14:05:14 +0000 (UTC) Received: from andre.telenet-ops.be (andre.telenet-ops.be [195.130.132.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03534145341 for ; Wed, 28 Feb 2024 14:05:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709129113; cv=none; b=IXiCBRUz+gERNynz5Gfd3URB//7bcLnVVACa1XmRxjQCRb129nlMwUlPPBhdV0tIG5mKrB8pHs55lVFXPZFDO5IgQEt9yA26O9LjqdXkIh/+xyKQzlCEPGlbwIe/pT9N9Cw17bbHj9SmnwIgW4464UU0Gzd9nQ+7Fg/rLVcLQ5k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709129113; c=relaxed/simple; bh=L3K4rtzy6gxBJUGpTTcskVWOegBL2LVnvlohsA27NJs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=PfbOzvfpdWWxVqKLNRGuoLnwtUejpb/mQ8Ij37avd850+Dn3YaQEOpHKdO5m6gbX4GcJ+TsmBUZUzG1yi4mBD25BDiY8ubTLL231wnXQQObGLdNAI7Zpt6jWJHdsmDQ10fExjv5bsejsuFb3DCjZcS+zT7cCwpTL8wVliAbyzFo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:48c4:26a9:d9ec:22cb]) by andre.telenet-ops.be with bizsmtp id se542B0064gWvPH01e54PF; Wed, 28 Feb 2024 15:05:10 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1rfKYI-001tZa-F6; Wed, 28 Feb 2024 15:05:04 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1rfKYR-006hqA-UZ; Wed, 28 Feb 2024 15:05:03 +0100 From: Geert Uytterhoeven To: Chris Down , Petr Mladek , Greg Kroah-Hartman , Andy Shevchenko , Jessica Yu , Steven Rostedt , John Ogness , Sergey Senozhatsky , Jason Baron , Jim Cromie , Ilya Dryomov , Xiubo Li , Jeff Layton Cc: linux-kernel@vger.kernel.org, ceph-devel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH net-next] Simplify net_dbg_ratelimited() dummy Date: Wed, 28 Feb 2024 15:05:02 +0100 Message-Id: <5d75ce122b5cbfe62b018a7719960e34cfcbb1f2.1709128975.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit There is no need to wrap calls to the no_printk() helper inside an always-false check, as no_printk() already does that internally. Signed-off-by: Geert Uytterhoeven --- include/linux/net.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/linux/net.h b/include/linux/net.h index c9b4a63791a45948..15df6d5f27a7badc 100644 --- a/include/linux/net.h +++ b/include/linux/net.h @@ -299,10 +299,7 @@ do { \ net_ratelimited_function(pr_debug, fmt, ##__VA_ARGS__) #else #define net_dbg_ratelimited(fmt, ...) \ - do { \ - if (0) \ - no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); \ - } while (0) + no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) #endif #define net_get_random_once(buf, nbytes) \ -- 2.34.1