]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-cli: use uniform if .. else format
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Sun, 12 May 2019 18:58:19 +0000 (11:58 -0700)
committerKeith Busch <keith.busch@intel.com>
Tue, 14 May 2019 21:45:12 +0000 (15:45 -0600)
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
nvme-models.c

index 5006f7a4722179cd0c3d6510efa1df9b744cb21b..f90ab9574d04db3286f48934e365b14d81f32714 100644 (file)
@@ -259,8 +259,7 @@ static FILE *open_pci_ids(void)
        if ((pci_ids_path = getenv("PCI_IDS_PATH")) != NULL) {
                if ((fp = fopen(pci_ids_path, "r")) != NULL) {
                        return fp;
-               }
-               else {
+               } else {
                        /* fail if user provided environment variable but could not open */
                        perror(pci_ids_path);
                        return NULL;