Skip to content

Commit 73d77c5

Browse files
Chaitanya KulkarniChristoph Hellwig
authored andcommitted
nvmet: don't fold lines
Don't fold line that can fit into 80 char limit. No functional change in this patch. Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent a8adf0c commit 73d77c5

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

drivers/nvme/target/configfs.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,9 @@ CONFIGFS_ATTR(nvmet_, addr_adrfam);
9393
static ssize_t nvmet_addr_portid_show(struct config_item *item,
9494
char *page)
9595
{
96-
struct nvmet_port *port = to_nvmet_port(item);
96+
__le16 portid = to_nvmet_port(item)->disc_addr.portid;
9797

98-
return snprintf(page, PAGE_SIZE, "%d\n",
99-
le16_to_cpu(port->disc_addr.portid));
98+
return snprintf(page, PAGE_SIZE, "%d\n", le16_to_cpu(portid));
10099
}
101100

102101
static ssize_t nvmet_addr_portid_store(struct config_item *item,
@@ -124,8 +123,7 @@ static ssize_t nvmet_addr_traddr_show(struct config_item *item,
124123
{
125124
struct nvmet_port *port = to_nvmet_port(item);
126125

127-
return snprintf(page, PAGE_SIZE, "%s\n",
128-
port->disc_addr.traddr);
126+
return snprintf(page, PAGE_SIZE, "%s\n", port->disc_addr.traddr);
129127
}
130128

131129
static ssize_t nvmet_addr_traddr_store(struct config_item *item,
@@ -199,8 +197,7 @@ static ssize_t nvmet_addr_trsvcid_show(struct config_item *item,
199197
{
200198
struct nvmet_port *port = to_nvmet_port(item);
201199

202-
return snprintf(page, PAGE_SIZE, "%s\n",
203-
port->disc_addr.trsvcid);
200+
return snprintf(page, PAGE_SIZE, "%s\n", port->disc_addr.trsvcid);
204201
}
205202

206203
static ssize_t nvmet_addr_trsvcid_store(struct config_item *item,
@@ -1236,8 +1233,7 @@ CONFIGFS_ATTR(nvmet_subsys_, attr_model);
12361233
static ssize_t nvmet_subsys_attr_discovery_nqn_show(struct config_item *item,
12371234
char *page)
12381235
{
1239-
return snprintf(page, PAGE_SIZE, "%s\n",
1240-
nvmet_disc_subsys->subsysnqn);
1236+
return snprintf(page, PAGE_SIZE, "%s\n", nvmet_disc_subsys->subsysnqn);
12411237
}
12421238

12431239
static ssize_t nvmet_subsys_attr_discovery_nqn_store(struct config_item *item,

0 commit comments

Comments
 (0)