mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 09:45:55 +08:00
arch: cxd56xx: Fix uninitialized variable for gnss driver
Fix uninitialized variable in gnss driver. CodeSonar Warning 518288 - 518292
This commit is contained in:
@@ -519,7 +519,7 @@ static int cxd56_gnss_get_satellite_system(FAR struct file *filep,
|
||||
unsigned long arg)
|
||||
{
|
||||
int ret;
|
||||
uint32_t system;
|
||||
uint32_t system = 0;
|
||||
|
||||
if (!arg)
|
||||
{
|
||||
@@ -701,7 +701,7 @@ static int cxd56_gnss_get_tcxo_offset(FAR struct file *filep,
|
||||
unsigned long arg)
|
||||
{
|
||||
int ret;
|
||||
int32_t offset;
|
||||
int32_t offset = 0;
|
||||
|
||||
if (!arg)
|
||||
{
|
||||
@@ -1741,7 +1741,7 @@ static int cxd56_gnss_get_rtk_interval(FAR struct file *filep,
|
||||
unsigned long arg)
|
||||
{
|
||||
int ret;
|
||||
int interval;
|
||||
int interval = 0;
|
||||
|
||||
if (!arg)
|
||||
{
|
||||
@@ -1798,7 +1798,7 @@ static int cxd56_gnss_get_rtk_satellite(FAR struct file *filep,
|
||||
unsigned long arg)
|
||||
{
|
||||
int ret;
|
||||
uint32_t gnss;
|
||||
uint32_t gnss = 0;
|
||||
|
||||
if (!arg)
|
||||
{
|
||||
@@ -1855,7 +1855,7 @@ static int cxd56_gnss_get_rtk_ephemeris_enable(FAR struct file *filep,
|
||||
unsigned long arg)
|
||||
{
|
||||
int ret;
|
||||
int enable;
|
||||
int enable = 0;
|
||||
|
||||
if (!arg)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user