Skip to content
Commit 983a9ff1 authored by Ruiqiang Hao's avatar Ruiqiang Hao Committed by Bruce Ashfield
Browse files

driver: spi: cadence: remove unused variables

commit 51e67b2b

 (driver: spi: cadence: Add ACPI support)
replaced node_child with fwnode_child, but the old variables
were not deleted, this will cause compiler warning below, so
remove these unused variables.

drivers/spi/spi-cadence-xspi.c: In function 'cdns_xspi_of_get_plat_data':
drivers/spi/spi-cadence-xspi.c:873:29: warning: unused variable 'node_child' [-Wunused-variable]
  873 |         struct device_node *node_child;
      |                             ^~~~~~~~~~
drivers/spi/spi-cadence-xspi.c:871:29: warning: unused variable 'node_prop' [-Wunused-variable]
  871 |         struct device_node *node_prop = pdev->dev.of_node;
      |                             ^~~~~~~~~

Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent ecef9734
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment