Commit d38407e
committed
spi-v2.0: Phytium: fix uninitialized ret in spi_phytium_write
drivers/spi/spi-phytium-common.c:333:7: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized]
333 | if (ret) {
| ^~~
CC [M] drivers/input/serio/pcips2.o
drivers/spi/spi-phytium-common.c:325:9: note: initialize the variable 'ret' to silence this warning
325 | int ret;
| ^
| = 0
1 error generated.
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>1 parent 50a6b6c commit d38407e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
0 commit comments