gpio: simplify dummy name and label getters in sysfs impl

This commit is contained in:
Vanya A. Sergeev
2020-11-19 23:27:05 -06:00
parent 8e89b26aa9
commit 8e54e5e436
+6 -2
View File
@@ -604,12 +604,16 @@ static int gpio_sysfs_fd(gpio_t *gpio) {
}
static int gpio_sysfs_name(gpio_t *gpio, char *str, size_t len) {
strncpy(str, "", len);
if (len)
str[0] = '\0';
return 0;
}
static int gpio_sysfs_label(gpio_t *gpio, char *str, size_t len) {
strncpy(str, "", len);
if (len)
str[0] = '\0';
return 0;
}