diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2017-10-11 19:49:22 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-10-15 02:47:07 +0200 |
commit | 2055d1f067509e2dac75faf275a8ee59dcd2b97a (patch) | |
tree | 69325ff9a9a91bd416463e099706b4ce893c9712 /drivers/infiniband/hw/qib/qib_iba6120.c | |
parent | IB/qib: Suppress gcc 7 fall-through complaints (diff) | |
download | linux-2055d1f067509e2dac75faf275a8ee59dcd2b97a.tar.xz linux-2055d1f067509e2dac75faf275a8ee59dcd2b97a.zip |
IB/qib: Remove set-but-not-used variables
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Tested-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_iba6120.c')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_iba6120.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/qib/qib_iba6120.c b/drivers/infiniband/hw/qib/qib_iba6120.c index 3c5adfa104a0..3a0a28e10b86 100644 --- a/drivers/infiniband/hw/qib/qib_iba6120.c +++ b/drivers/infiniband/hw/qib/qib_iba6120.c @@ -1903,7 +1903,6 @@ static void qib_6120_put_tid_2(struct qib_devdata *dd, u64 __iomem *tidptr, u32 type, unsigned long pa) { u32 __iomem *tidp32 = (u32 __iomem *)tidptr; - u32 tidx; if (!dd->kregbase) return; @@ -1927,7 +1926,6 @@ static void qib_6120_put_tid_2(struct qib_devdata *dd, u64 __iomem *tidptr, else /* for now, always full 4KB page */ pa |= 2 << 29; } - tidx = tidptr - dd->egrtidbase; writel(pa, tidp32); mmiowb(); } |