]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme: Remove duplicate error message
authorKeith Busch <keith.busch@intel.com>
Wed, 9 Jan 2019 22:43:00 +0000 (15:43 -0700)
committerKeith Busch <keith.busch@intel.com>
Wed, 9 Jan 2019 22:43:41 +0000 (15:43 -0700)
Link: https://github.com/linux-nvme/nvme-cli/issues/446
Signed-off-by: Keith Busch <keith.busch@intel.com>
nvme.c

diff --git a/nvme.c b/nvme.c
index e236eaa10d27515503c08e1572ad5fd12a8fcd83..992c6b9737c0606ce055a886eef8f6b95b091ad9 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -2678,7 +2678,6 @@ static int subsystem_reset(int argc, char **argv, struct command *cmd, struct pl
        err = nvme_subsystem_reset(fd);
        if (err < 0) {
                close(fd);
-               perror("Subsystem-reset");
                if (errno == ENOTTY)
                        fprintf(stderr,
                                "Subsystem-reset: NVM Subsystem Reset not supported.\n");