diff options
author | Kamenee Arumugam <kamenee.arumugam@intel.com> | 2017-08-21 18:26:26 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-08-28 19:12:17 -0400 |
commit | 3b7169338c1caad4d17ed5d9ed412f813c919cd2 (patch) | |
tree | 6724ed98e4ae8c16cc78cd8e10d9440e245dfa40 /drivers/infiniband/hw/qib/qib_init.c | |
parent | 5b0ef650bd0f820e922fcc42f1985d4621ae19cf (diff) | |
download | linux-3b7169338c1caad4d17ed5d9ed412f813c919cd2.tar.gz linux-3b7169338c1caad4d17ed5d9ed412f813c919cd2.tar.bz2 linux-3b7169338c1caad4d17ed5d9ed412f813c919cd2.zip |
IB/qib: Remove unnecessary memory allocation for boardname
Remove all the memory allocation implemented for boardname and
directly assign the defined string literal.
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Kamenee Arumugam <kamenee.arumugam@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_init.c')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_init.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qib/qib_init.c b/drivers/infiniband/hw/qib/qib_init.c index cce4ab468b29..c5a4c65636d6 100644 --- a/drivers/infiniband/hw/qib/qib_init.c +++ b/drivers/infiniband/hw/qib/qib_init.c @@ -1398,7 +1398,6 @@ static void cleanup_device_data(struct qib_devdata *dd) qib_free_ctxtdata(dd, rcd); } kfree(tmp); - kfree(dd->boardname); } /* |