projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2109ddf
)
RDMA/siw: Remove goto lable in siw_mmap
author
Guoqing Jiang
<guoqing.jiang@linux.dev>
Mon, 13 Nov 2023 11:57:13 +0000
(19:57 +0800)
committer
Leon Romanovsky
<leon@kernel.org>
Wed, 15 Nov 2023 13:58:13 +0000
(15:58 +0200)
Let's remove it since the failure case only falls through
to the useless label.
Acked-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev>
Link:
https://lore.kernel.org/r/20231113115726.12762-5-guoqing.jiang@linux.dev
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/sw/siw/siw_verbs.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/sw/siw/siw_verbs.c
b/drivers/infiniband/sw/siw/siw_verbs.c
index
27f7dda
..
aad0a7d
100644
(file)
--- a/
drivers/infiniband/sw/siw/siw_verbs.c
+++ b/
drivers/infiniband/sw/siw/siw_verbs.c
@@
-66,12
+66,9
@@
int siw_mmap(struct ib_ucontext *ctx, struct vm_area_struct *vma)
entry = to_siw_mmap_entry(rdma_entry);
rv = remap_vmalloc_range(vma, entry->address, 0);
- if (rv)
{
+ if (rv)
pr_warn("remap_vmalloc_range failed: %lu, %zu\n", vma->vm_pgoff,
size);
- goto out;
- }
-out:
rdma_user_mmap_entry_put(rdma_entry);
return rv;