diff options
| author | Stefano Babic <[email protected]> | 2021-07-10 16:31:29 +0200 |
|---|---|---|
| committer | Stefano Babic <[email protected]> | 2021-07-10 18:14:54 +0200 |
| commit | 375d7e92980671c868788daf106e66d212faad6a (patch) | |
| tree | 8afee9668af5b251d4e671a8d7489651ae9b946e /scripts/checkpatch.pl | |
| parent | 55d46761a30f779dc82544bdc0de89f4c8c6e4ea (diff) | |
spi: mxc_spi: fix warnings if CLK_ENABLED not set
Following warnings (unused variables) are raised:
drivers/spi/mxc_spi.c: In function 'mxc_spi_probe':
drivers/spi/mxc_spi.c:595:14: error: unused variable 'blob' [-Werror=unused-variable]
595 | const void *blob = gd->fdt_blob;
| ^~~~
drivers/spi/mxc_spi.c:594:6: error: unused variable 'node' [-Werror=unused-variable]
594 | int node = dev_of_offset(bus);
Move the variable declaration inside the code where they are used.
Signed-off-by: Stefano Babic <[email protected]>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
