arch: cxd56xx: Fix uninitialized variable for gnss driver

Fix uninitialized variable in gnss driver.
CodeSonar Warning 518288 - 518292
This commit is contained in:
SPRESENSE
2021-05-19 17:04:44 +09:00
committed by Alin Jerpelea
parent 151fec4e98
commit 5a7a118320
+5 -5
View File
@@ -519,7 +519,7 @@ static int cxd56_gnss_get_satellite_system(FAR struct file *filep,
unsigned long arg) unsigned long arg)
{ {
int ret; int ret;
uint32_t system; uint32_t system = 0;
if (!arg) if (!arg)
{ {
@@ -701,7 +701,7 @@ static int cxd56_gnss_get_tcxo_offset(FAR struct file *filep,
unsigned long arg) unsigned long arg)
{ {
int ret; int ret;
int32_t offset; int32_t offset = 0;
if (!arg) if (!arg)
{ {
@@ -1741,7 +1741,7 @@ static int cxd56_gnss_get_rtk_interval(FAR struct file *filep,
unsigned long arg) unsigned long arg)
{ {
int ret; int ret;
int interval; int interval = 0;
if (!arg) if (!arg)
{ {
@@ -1798,7 +1798,7 @@ static int cxd56_gnss_get_rtk_satellite(FAR struct file *filep,
unsigned long arg) unsigned long arg)
{ {
int ret; int ret;
uint32_t gnss; uint32_t gnss = 0;
if (!arg) if (!arg)
{ {
@@ -1855,7 +1855,7 @@ static int cxd56_gnss_get_rtk_ephemeris_enable(FAR struct file *filep,
unsigned long arg) unsigned long arg)
{ {
int ret; int ret;
int enable; int enable = 0;
if (!arg) if (!arg)
{ {