Merge pull request #5356 from DipSwitch/pr/fix_cc2538_spi_compile_warning
cpu/cc2538/spi: Fix compiler warning of possible uninitialized variable
This commit is contained in:
commit
591b0ab3ac
@ -215,7 +215,7 @@ int spi_release(spi_t dev)
|
||||
|
||||
static char ssi_flush_input(cc2538_ssi_t *ssi)
|
||||
{
|
||||
char tmp;
|
||||
char tmp = 0;
|
||||
|
||||
while (ssi->SRbits.RNE) {
|
||||
tmp = ssi->DR;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user