diff options
author | Jubin John <jubin.john@intel.com> | 2016-02-14 20:20:50 -0800 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-10 20:45:39 -0500 |
commit | f3ff8189419e34b61c0e1040174dbd6701bf3428 (patch) | |
tree | 9ee0fc3f8be6c5ce677aa0e3d6a9f290955bffab /drivers/staging/rdma/hfi1/chip.c | |
parent | 3f34d9588ff3b8adc4b5828327554fce98a94204 (diff) | |
download | linux-stable-f3ff8189419e34b61c0e1040174dbd6701bf3428.tar.gz linux-stable-f3ff8189419e34b61c0e1040174dbd6701bf3428.tar.bz2 linux-stable-f3ff8189419e34b61c0e1040174dbd6701bf3428.zip |
staging/rdma/hfi1: Split multiple assignments
Split multiple assignments into individual assignments to fix
checkpatch check:
CHECK: multiple assignments should be avoided
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma/hfi1/chip.c')
-rw-r--r-- | drivers/staging/rdma/hfi1/chip.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c index bdc561087a51..233958d8061d 100644 --- a/drivers/staging/rdma/hfi1/chip.c +++ b/drivers/staging/rdma/hfi1/chip.c @@ -12459,8 +12459,10 @@ static int request_msix_irqs(struct hfi1_devdata *dd) /* calculate the ranges we are going to use */ first_general = 0; - first_sdma = last_general = first_general + 1; - first_rx = last_sdma = first_sdma + dd->num_sdma; + last_general = first_general + 1; + first_sdma = last_general; + last_sdma = first_sdma + dd->num_sdma; + first_rx = last_sdma; last_rx = first_rx + dd->n_krcv_queues; /* |