Skip to content

-Wuninitialized in drivers/spi/spi-bcm2835aux.c #1199

@nathanchance

Description

@nathanchance
drivers/spi/spi-bcm2835aux.c:532:50: warning: variable 'err' is uninitialized when used here [-Wuninitialized]
                dev_err(&pdev->dev, "could not get clk: %d\n", err);
                                                               ^~~
./include/linux/dev_printk.h:112:32: note: expanded from macro 'dev_err'
        _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
                                      ^~~~~~~~~~~
drivers/spi/spi-bcm2835aux.c:495:9: note: initialize the variable 'err' to silence this warning
        int err;
               ^
                = 0
1 warning generated.

Patch submitted: https://lore.kernel.org/r/20201113180701.455541-1-natechancellor@gmail.com

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions