Message ID | Y/yAlDytLH0ZNLNz@kili |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2341387wrd; Mon, 27 Feb 2023 02:36:50 -0800 (PST) X-Google-Smtp-Source: AK7set9hAfks0vkkSNv/kqE+tiKwlCFwiCn63n7ltblxz+ZQCIew7mBZ+3XF2/3QTr3XzvVwokqV X-Received: by 2002:a62:1e81:0:b0:5aa:3ce6:3763 with SMTP id e123-20020a621e81000000b005aa3ce63763mr20156012pfe.10.1677494209691; Mon, 27 Feb 2023 02:36:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677494209; cv=none; d=google.com; s=arc-20160816; b=nTS54TTsvMF7e6OiBJrzQOtDCmOHfmJSCSagG9JjmxEPbtbKi0ZR17MlF1WbIK6wA4 rNSQCOcZnqCk0ChsI8/hdgelpC46ZuYqHzAQslUsDp59v6fdNoP/BgN4wnCOgmnD+QDO nshmA2Eg0ugulpNFII6WZ5+GpSkuGQwX57HGgE6KFB8TX5OrCOvFT4gO8RQle3ByHS+6 Qy+RJ3kmjStlbCIEQdoE3oWnvXvAirLXEhfDVHTePPkvA/wkrewjOzTTYK4ODDmL6Ptq iBexDCZaPBf3s3ZC5ChNrJoPOsROs/90x8QKzZBo9yHDebPcUNS9LIZ1HmtnugGxEZzV J/kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=lWPtIeGJuLp2sNqEUD7UlToTJ4p0ZWwdgktgqC9Ag+M=; b=I+KSp7Vq8ro7mmEWYjpGbAqX8M/7iL8Fi6YMiYtlJE3PhE1kvd/4ooZKFbnqAXf7Fw bAnGj+r3bAhACtFQ/Ri5jFaBs5Jv99yM0bF2BFmVNGvj8vvgMOORHE+V4l5uiDyhpYaZ DrqpgBI/R4SKewKHm3syG3cQN19DTp92g4nyGik3BDSg9h/AitGgyUYtIvQy8w2JOBvH WCjPG0KNDSqv9Um5h0QinbYU8LCeDQ3uUfqJoChzxxzOA06OzUUArwSWkqYQ1GNDQ5Ge kaNjPWf6C6V8YoNRa0kEbMGvD5/1RRMtDw07g3vhRE9iIo2ErSr2FGBtWPT6lHhiWL9g yVpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kpmv7ygL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a63cf06000000b00502f13f32c5si6307737pgg.862.2023.02.27.02.36.36; Mon, 27 Feb 2023 02:36:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kpmv7ygL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229874AbjB0KG0 (ORCPT <rfc822;wenzhi022@gmail.com> + 99 others); Mon, 27 Feb 2023 05:06:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229899AbjB0KGY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Feb 2023 05:06:24 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAC111E5E8; Mon, 27 Feb 2023 02:06:18 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id bx12so2409149wrb.11; Mon, 27 Feb 2023 02:06:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=lWPtIeGJuLp2sNqEUD7UlToTJ4p0ZWwdgktgqC9Ag+M=; b=kpmv7ygLhic7CkQUH8FSQ1S84c4UmufxDVATvkq61obO/OPQQElNy/sFDO3FBUbGZY m37m29y10lmsdhgCh9fEaOCaHza+cuQugNbK38FDRg5JO09TuapmOTiJ6mCtC0lMFIto iYx/y08+hxxOUAUS3KyvKXIE3b/LiaVk4GNZr6vRUT6yW0AP5XBxwEK+/LZjNXLHmzH2 agwe6H1/UBFQdohk6U1SZ4HaHs3lcCkHl/IqxYt+DxIF1dUXoSfyqGNkGd9FLtQJM8qN cxJVisvE6b+D9/CL6dXjltIZmKbwtiPy5nQYZBqNFW6w3bZC+AEjwoN/m1Kk3hjeoqy0 nFTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lWPtIeGJuLp2sNqEUD7UlToTJ4p0ZWwdgktgqC9Ag+M=; b=xXFhMlSH4jr2JARIoT8hDA8RJkXrE4ccyjwnCBlnioQO/J385laniRV5nthxnOtvZM j10ipxvaAvZOLYiW35e13AwcpDeaHzVUedGeUzUdwNPaT9w0OTFjRJPVDrRhYJWjWfyz 8T2xc/ZakOUOwtKy3SPxaajI0Y8N6jsRn0BgeQ7KfKNpVGZHmh1AJrPQnJrX6GNh1YF+ wrpQbHY/ohEuk7CxmPRpkWaalSAz9JVEchBfdu9h4ukDeF2ew97Jb7spaLkibSC+bYUm qItUhvQ6BmngtbhCUdll7MD4mf+DLXjVYadvQs6fBEFpmDhCqFPZXmBuFiB5zTucMi0U txLw== X-Gm-Message-State: AO0yUKUaShDsHhUeVVOxpuM7+EVCgneAM3i0mFyAx/OKGvvm7w1ILwhg Ett+CU/aaRkNSzi06JdsbOUptrr5POk= X-Received: by 2002:a5d:4e47:0:b0:2c8:840:26ea with SMTP id r7-20020a5d4e47000000b002c8084026eamr7842180wrt.12.1677492377048; Mon, 27 Feb 2023 02:06:17 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id s8-20020a5d4ec8000000b002c704271b05sm6665807wrv.66.2023.02.27.02.06.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 02:06:16 -0800 (PST) Date: Mon, 27 Feb 2023 13:06:12 +0300 From: Dan Carpenter <error27@gmail.com> To: Dan Carpenter <error27@gmail.com> Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Andrew Morton <akpm@linux-foundation.org> Subject: [PATCH] dca: delete unnecessary variable Message-ID: <Y/yAlDytLH0ZNLNz@kili> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: git-send-email haha only kidding X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758980168347109266?= X-GMAIL-MSGID: =?utf-8?q?1758980168347109266?= |
Series |
dca: delete unnecessary variable
|
|
Commit Message
Dan Carpenter
Feb. 27, 2023, 10:06 a.m. UTC
It's more readable to just pass NULL directly instead of using a
variable for that.
Signed-off-by: Dan Carpenter <error27@gmail.com>
---
This subsystem seems unmaintained, but I already looked at the code and
wrote the patch... Andrew, could you take this?
drivers/dca/dca-core.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/dca/dca-core.c b/drivers/dca/dca-core.c index c40c2ebfdae9..ed3dac546dd6 100644 --- a/drivers/dca/dca-core.c +++ b/drivers/dca/dca-core.c @@ -294,9 +294,7 @@ EXPORT_SYMBOL_GPL(dca3_get_tag); */ u8 dca_get_tag(int cpu) { - struct device *dev = NULL; - - return dca_common_get_tag(dev, cpu); + return dca_common_get_tag(NULL, cpu); } EXPORT_SYMBOL_GPL(dca_get_tag);