summaryrefslogtreecommitdiffstats
path: root/binding
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2020-08-11 10:57:41 -0700
committerAlistair Francis <alistair.francis@wdc.com>2020-08-21 11:24:13 -0700
commit377a25d3f0831b5fd4a0ac01358ec86341d2531e (patch)
tree9e7d12a5f33de968941b0062da38a4d10d07ab8d /binding
parent7e4728bade2b0d72e6d21120929a76ab1fd3629e (diff)
binding/radio_impl_tef665x: Avoid uninitialised variable warnings
GCC 10 generates uninitialised warnings for the fd variable, to avoid these initalise the variables to 0. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Change-Id: Ieb718498f9d9dd1e8d2e2e79f71f060218759ec6
Diffstat (limited to 'binding')
-rw-r--r--binding/radio_impl_tef665x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binding/radio_impl_tef665x.c b/binding/radio_impl_tef665x.c
index a3284f2..a1cc2e3 100644
--- a/binding/radio_impl_tef665x.c
+++ b/binding/radio_impl_tef665x.c
@@ -1068,7 +1068,7 @@ static radio_band_t tef665x_get_band(void)
static void tef665x_set_band(radio_band_t band)
{
- uint fd;
+ uint fd = 0;
int ret = i2c_init(I2C_DEV, _open, &fd);
_debug("i2c_init ret value", ret);
@@ -1097,7 +1097,7 @@ static uint32_t tef665x_get_frequency(void)
static void tef665x_set_frequency(uint32_t frequency)
{
- uint fd, f;
+ uint fd = 0, f;
int ret = i2c_init(I2C_DEV, _open, &fd);
_debug("i2c_init ret value", ret);