forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
-Wuninitialized[BUG] linux-nextThis is an issue only seen in linux-nextThis is an issue only seen in linux-next[FIXED][LINUX] development cycleThis bug was only present and fixed in a -next or -rc cycleThis bug was only present and fixed in a -next or -rc cycle
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
-Wuninitialized[BUG] linux-nextThis is an issue only seen in linux-nextThis is an issue only seen in linux-next[FIXED][LINUX] development cycleThis bug was only present and fixed in a -next or -rc cycleThis bug was only present and fixed in a -next or -rc cycle