dca: delete unnecessary variable
PATCH 1/1 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 <[email protected]>
---
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(-)
drivers/dca/dca-core.c +1 -3
@@ -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);
Signature · 1 line
2.39.1