Messages in this thread Patch in this message | | | From | Joe Perches <> | Subject | [PATCH 10/13] nvdimm: namespace_devs: Move assignment operators | Date | Wed, 11 Sep 2019 19:54:40 -0700 |
| |
Kernel code uses assignment operators where the statement is split on multiple lines on the first line.
Move 2 unusual uses.
Signed-off-by: Joe Perches <joe@perches.com> --- drivers/nvdimm/namespace_devs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/nvdimm/namespace_devs.c b/drivers/nvdimm/namespace_devs.c index 70e1d752c12c..8c75ef84bad7 100644 --- a/drivers/nvdimm/namespace_devs.c +++ b/drivers/nvdimm/namespace_devs.c @@ -2023,8 +2023,8 @@ static struct device *create_namespace_pmem(struct nd_region *nd_region, nspm->lbasize = __le64_to_cpu(label0->lbasize); ndd = to_ndd(nd_mapping); if (namespace_label_has(ndd, abstraction_guid)) - nspm->nsio.common.claim_class - = to_nvdimm_cclass(&label0->abstraction_guid); + nspm->nsio.common.claim_class = + to_nvdimm_cclass(&label0->abstraction_guid); } if (!nspm->alt_name || !nspm->uuid) { @@ -2267,8 +2267,8 @@ static struct device *create_namespace_blk(struct nd_region *nd_region, nsblk->uuid = kmemdup(nd_label->uuid, NSLABEL_UUID_LEN, GFP_KERNEL); if (namespace_label_has(ndd, abstraction_guid)) - nsblk->common.claim_class - = to_nvdimm_cclass(&nd_label->abstraction_guid); + nsblk->common.claim_class = + to_nvdimm_cclass(&nd_label->abstraction_guid); if (!nsblk->uuid) goto blk_err; memcpy(name, nd_label->name, NSLABEL_NAME_LEN); -- 2.15.0
| |