Skip to content

Commit

Permalink
memory: da8xx-ddrctl: Remove unused 'node' variable
Browse files Browse the repository at this point in the history
The variable 'node' is not used.  Remove it to silence compile warning:

    drivers/memory/da8xx-ddrctl.c: In function 'da8xx_ddrctl_probe':
    drivers/memory/da8xx-ddrctl.c:105:22: warning: variable 'node' set but not used [-Wunused-but-set-variable]

Signed-off-by: Krzysztof Kozlowski <[email protected]>
  • Loading branch information
krzk committed Jul 24, 2020
1 parent a269ff3 commit 6b16f36
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/memory/da8xx-ddrctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,12 @@ static int da8xx_ddrctl_probe(struct platform_device *pdev)
{
const struct da8xx_ddrctl_config_knob *knob;
const struct da8xx_ddrctl_setting *setting;
struct device_node *node;
struct resource *res;
void __iomem *ddrctl;
struct device *dev;
u32 reg;

dev = &pdev->dev;
node = dev->of_node;

setting = da8xx_ddrctl_get_board_settings();
if (!setting) {
Expand Down

0 comments on commit 6b16f36

Please sign in to comment.