Fix Error: sx127x_demo.c:464:7: error: variable 'fd' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
@@ -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 */
