[<prev] [next>] [day] [month] [year] [list]
Message-ID: <Y/yAlDytLH0ZNLNz@kili>
Date: Mon, 27 Feb 2023 13:06:12 +0300
From: Dan Carpenter <error27@...il.com>
To: Dan Carpenter <error27@...il.com>
Cc: linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH] dca: delete unnecessary variable
It's more readable to just pass NULL directly instead of using a
variable for that.
Signed-off-by: Dan Carpenter <error27@...il.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);
--
2.39.1
Powered by blists - more mailing lists