Skip to content

Commit 75e4d16

Browse files
author
Kelvin Cao
committed
Fix style nit.
1 parent 250d60d commit 75e4d16

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

switchtec-nvme.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ static int scan_pax_dev_filter(const struct dirent *d)
113113

114114
#define NVME_CLASS 0x010802
115115
#define CAP_PF 0x3
116-
static int pax_get_nvme_pf_functions(struct pax_nvme_device *pax, struct switchtec_gfms_db_ep_port_attached_device_function *functions, int max_functions)
116+
static int pax_get_nvme_pf_functions(struct pax_nvme_device *pax,
117+
struct switchtec_gfms_db_ep_port_attached_device_function *functions,
118+
int max_functions)
117119
{
118120
int i, j;
119121
int index;
@@ -149,7 +151,7 @@ static int pax_get_nvme_pf_functions(struct pax_nvme_device *pax, struct switcht
149151
}
150152

151153
static int switchtec_pax_list(int argc, char **argv, struct command *command,
152-
struct plugin *plugin)
154+
struct plugin *plugin)
153155
{
154156
char path[264];
155157
char node[300];
@@ -190,9 +192,9 @@ static int switchtec_pax_list(int argc, char **argv, struct command *command,
190192
if (fmt != JSON && fmt != NORMAL)
191193
return -EINVAL;
192194

193-
if (cfg.moe_service) {
195+
if (cfg.moe_service)
194196
n = 1;
195-
} else {
197+
else {
196198
n = scandir(dev, &pax_devices, scan_pax_dev_filter, alphasort);
197199
if (n < 0) {
198200
fprintf(stderr, "no NVMe device(s) detected.\n");

0 commit comments

Comments
 (0)