mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-07 14:15:13 +00:00
Fix Error: sx127x_demo.c:464:7: error: variable 'fd' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
bf03439d1b
commit
25f200e9b0
1 changed files with 2 additions and 2 deletions
|
|
@ -464,7 +464,7 @@ int main(int argc, FAR char *argv[])
|
|||
if (ret != OK)
|
||||
{
|
||||
printf("sx127x_main: validate arguments failed!\n");
|
||||
goto errout;
|
||||
return 0;
|
||||
}
|
||||
|
||||
printf("Start sx127x_demo\n");
|
||||
|
|
@ -476,7 +476,7 @@ int main(int argc, FAR char *argv[])
|
|||
{
|
||||
int errcode = errno;
|
||||
printf("ERROR: Failed to open device %s: %d\n", DEV_NAME, errcode);
|
||||
goto errout;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Set modulation */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue