summaryrefslogtreecommitdiff
path: root/drivers/dca
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2023-02-27 13:06:12 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-04-08 13:45:36 -0700
commit3ac39d208d485ef5f5518b96f23ec9ade077683f (patch)
tree5e7107117529d49e25be9c777f77bb340e69450a /drivers/dca
parent7b32137bc027701cc9c57967af64fcdea0ef113b (diff)
dca: delete unnecessary variable
It's more readable to just pass NULL directly instead of using a variable for that. Link: https://lkml.kernel.org/r/Y/yAlDytLH0ZNLNz@kili Signed-off-by: Dan Carpenter <error27@gmail.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/dca')
-rw-r--r--drivers/dca/dca-core.c4
1 files changed, 1 insertions, 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);