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>
This commit is contained in:

committed by
Doug Ledford

parent
5b0ef650bd
commit
3b7169338c
@@ -1398,7 +1398,6 @@ static void cleanup_device_data(struct qib_devdata *dd)
|
||||
qib_free_ctxtdata(dd, rcd);
|
||||
}
|
||||
kfree(tmp);
|
||||
kfree(dd->boardname);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user