projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b217e0
)
scsi: fnic: Simplify the return expression of vnic_wq_copy_alloc()
author
Liu Shixin
<liushixin2@huawei.com>
Mon, 21 Sep 2020 08:24:52 +0000
(16:24 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Thu, 8 Oct 2020 03:50:03 +0000
(23:50 -0400)
Simplify the return expression.
Link:
https://lore.kernel.org/r/20200921082452.2592085-1-liushixin2@huawei.com
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fnic/vnic_wq_copy.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/fnic/vnic_wq_copy.c
b/drivers/scsi/fnic/vnic_wq_copy.c
index 9eab7e7caf3821d585490311ab3c4e940cc4e983..7b18635df7e64f10a3a26fda36c588d3bae1c1c8 100644
(file)
--- a/
drivers/scsi/fnic/vnic_wq_copy.c
+++ b/
drivers/scsi/fnic/vnic_wq_copy.c
@@
-79,8
+79,6
@@
int vnic_wq_copy_alloc(struct vnic_dev *vdev, struct vnic_wq_copy *wq,
unsigned int index, unsigned int desc_count,
unsigned int desc_size)
{
- int err;
-
wq->index = index;
wq->vdev = vdev;
wq->to_use_index = wq->to_clean_index = 0;
@@
-92,11
+90,7
@@
int vnic_wq_copy_alloc(struct vnic_dev *vdev, struct vnic_wq_copy *wq,
vnic_wq_copy_disable(wq);
- err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size);
- if (err)
- return err;
-
- return 0;
+ return vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size);
}
void vnic_wq_copy_init(struct vnic_wq_copy *wq, unsigned int cq_index,