diff options
author | Dan Carpenter <error27@gmail.com> | 2023-02-27 11:06:12 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-04-08 22:45:36 +0200 |
commit | 3ac39d208d485ef5f5518b96f23ec9ade077683f (patch) | |
tree | 5e7107117529d49e25be9c777f77bb340e69450a /drivers | |
parent | kcov: improve documentation (diff) | |
download | linux-3ac39d208d485ef5f5518b96f23ec9ade077683f.tar.xz linux-3ac39d208d485ef5f5518b96f23ec9ade077683f.zip |
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')
-rw-r--r-- | drivers/dca/dca-core.c | 4 |
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); |