]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
NBFT: Remove documentation from nbft.c since it's also in nbft.h
authorMartin Belanger <martin.belanger@dell.com>
Fri, 14 Apr 2023 15:19:23 +0000 (11:19 -0400)
committerDaniel Wagner <wagi@monom.org>
Mon, 17 Apr 2023 07:47:05 +0000 (09:47 +0200)
Also, replace nbft_free() by nvme_nbft_free() in documentation
found in nbft.h.

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
src/nvme/nbft.c
src/nvme/nbft.h

index a08576839784b6dfe1c3c5a7154a91d5dd89a07e..a1e17cd8ecc8b758f9f3f3fa17c308f413cc5956 100644 (file)
@@ -626,10 +626,6 @@ static int parse_raw_nbft(struct nbft_info *nbft)
        return 0;
 }
 
-/**
- * nvme_nbft_free() - Free the struct nbft_info and its contents
- * @nbft: Parsed NBFT table data.
- */
 void nvme_nbft_free(struct nbft_info *nbft)
 {
        struct nbft_info_hfi **hfi;
@@ -656,17 +652,6 @@ void nvme_nbft_free(struct nbft_info *nbft)
        free(nbft);
 }
 
-/**
- * nvme_nbft_read() - Read and parse contents of an ACPI NBFT table
- *
- * @nbft:     Parsed NBFT table data.
- * @filename: Filename of the raw NBFT table to read.
- *
- * Read and parse the specified NBFT file into a struct nbft_info.
- * Free with nvme_nbft_free().
- *
- * Return: 0 on success, errno otherwise.
- */
 int nvme_nbft_read(struct nbft_info **nbft, const char *filename)
 {
        __u8 *raw_nbft = NULL;
index c3caa855400e6e3b7e4cb2715ac3803d3550df2e..6012e160819c72730f10a49d439a0bd8a20f8cfd 100644 (file)
@@ -1223,7 +1223,7 @@ struct nbft_info {
  * @filename: Filename of the raw NBFT table to read.
  *
  * Read and parse the specified NBFT file into a struct nbft_info.
- * Free with nbft_free().
+ * Free with nvme_nbft_free().
  *
  * Return: 0 on success, errno otherwise.
  */