|
@@ -419,7 +419,7 @@ static struct ocrdma_pd *_ocrdma_alloc_pd(struct ocrdma_dev *dev,
|
|
|
struct ib_udata *udata)
|
|
|
{
|
|
|
struct ocrdma_pd *pd = NULL;
|
|
|
- int status = 0;
|
|
|
+ int status;
|
|
|
|
|
|
pd = kzalloc(sizeof(*pd), GFP_KERNEL);
|
|
|
if (!pd)
|
|
@@ -468,7 +468,7 @@ static inline int is_ucontext_pd(struct ocrdma_ucontext *uctx,
|
|
|
static int _ocrdma_dealloc_pd(struct ocrdma_dev *dev,
|
|
|
struct ocrdma_pd *pd)
|
|
|
{
|
|
|
- int status = 0;
|
|
|
+ int status;
|
|
|
|
|
|
if (dev->pd_mgr->pd_prealloc_valid)
|
|
|
status = ocrdma_put_pd_num(dev, pd->id, pd->dpp_enabled);
|
|
@@ -596,7 +596,7 @@ map_err:
|
|
|
|
|
|
int ocrdma_dealloc_ucontext(struct ib_ucontext *ibctx)
|
|
|
{
|
|
|
- int status = 0;
|
|
|
+ int status;
|
|
|
struct ocrdma_mm *mm, *tmp;
|
|
|
struct ocrdma_ucontext *uctx = get_ocrdma_ucontext(ibctx);
|
|
|
struct ocrdma_dev *dev = get_ocrdma_dev(ibctx->device);
|
|
@@ -623,7 +623,7 @@ int ocrdma_mmap(struct ib_ucontext *context, struct vm_area_struct *vma)
|
|
|
unsigned long vm_page = vma->vm_pgoff << PAGE_SHIFT;
|
|
|
u64 unmapped_db = (u64) dev->nic_info.unmapped_db;
|
|
|
unsigned long len = (vma->vm_end - vma->vm_start);
|
|
|
- int status = 0;
|
|
|
+ int status;
|
|
|
bool found;
|
|
|
|
|
|
if (vma->vm_start & (PAGE_SIZE - 1))
|
|
@@ -1285,7 +1285,7 @@ static int ocrdma_copy_qp_uresp(struct ocrdma_qp *qp,
|
|
|
struct ib_udata *udata, int dpp_offset,
|
|
|
int dpp_credit_lmt, int srq)
|
|
|
{
|
|
|
- int status = 0;
|
|
|
+ int status;
|
|
|
u64 usr_db;
|
|
|
struct ocrdma_create_qp_uresp uresp;
|
|
|
struct ocrdma_pd *pd = qp->pd;
|
|
@@ -1949,7 +1949,7 @@ int ocrdma_modify_srq(struct ib_srq *ibsrq,
|
|
|
enum ib_srq_attr_mask srq_attr_mask,
|
|
|
struct ib_udata *udata)
|
|
|
{
|
|
|
- int status = 0;
|
|
|
+ int status;
|
|
|
struct ocrdma_srq *srq;
|
|
|
|
|
|
srq = get_ocrdma_srq(ibsrq);
|