diff options
Diffstat (limited to 'plugins/transcend')
-rw-r--r-- | plugins/transcend/transcend-nvme.c | 5 | ||||
-rw-r--r-- | plugins/transcend/transcend-nvme.h | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/transcend/transcend-nvme.c b/plugins/transcend/transcend-nvme.c index 85d3cac..0a3d852 100644 --- a/plugins/transcend/transcend-nvme.c +++ b/plugins/transcend/transcend-nvme.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later #include <fcntl.h> #include <errno.h> #include <stdio.h> @@ -49,7 +50,7 @@ static int getHealthValue(int argc, char **argv, struct command *cmd, struct plu } } - + close(fd); return result; } @@ -83,6 +84,6 @@ static int getBadblock(int argc, char **argv, struct command *cmd, struct plugin int badblock = data[0]; printf("Transcend NVME badblock count: %d\n",badblock); } - + close(fd); return result; } diff --git a/plugins/transcend/transcend-nvme.h b/plugins/transcend/transcend-nvme.h index 317793a..9c89883 100644 --- a/plugins/transcend/transcend-nvme.h +++ b/plugins/transcend/transcend-nvme.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #undef CMD_INC_FILE #define CMD_INC_FILE plugins/transcend/transcend-nvme |