aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-12-01 18:56:05 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2025-12-01 18:56:05 +0200
commitc4b70d4ec36404c9454199bec208eaf3116ef453 (patch)
tree5d43f0c4b0027388c549703c081c5cd541ab3d93 /src
parent2a7b3568792d50e94479298b5d0e5602d4e230f8 (diff)
downloadhid-tmff2-c4b70d4ec36404c9454199bec208eaf3116ef453.tar.gz
hid-tmff2-c4b70d4ec36404c9454199bec208eaf3116ef453.zip
fix maybe uninitialized variable
+ Closes #183
Diffstat (limited to 'src')
-rw-r--r--src/tmt300rs/hid-tmt300rs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmt300rs/hid-tmt300rs.c b/src/tmt300rs/hid-tmt300rs.c
index c247bd7..00eecee 100644
--- a/src/tmt300rs/hid-tmt300rs.c
+++ b/src/tmt300rs/hid-tmt300rs.c
@@ -1302,7 +1302,7 @@ int t300rs_open(void *data, int open_mode)
int t300rs_close(void *data, int open_mode)
{
struct t300rs_device_entry *t300rs = data;
- int ret;
+ int ret = 0;
if (!t300rs)
return -ENODEV;