mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
staging: rdma: hfi1: Remove unnecessary kfree
Remove an unnecessary kfree since rcd->opstats's value must be NULL for the code to execute `bail` label. This fixes the following smatch warning: drivers/staging/rdma/hfi1/init.c:335 hfi1_create_ctxtdata() warn: calling kfree() when 'rcd->opstats' is always NULL. Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e1af35bc79
commit
d34491679d
1 changed files with 0 additions and 1 deletions
|
|
@ -332,7 +332,6 @@ struct hfi1_ctxtdata *hfi1_create_ctxtdata(struct hfi1_pportdata *ppd, u32 ctxt)
|
|||
}
|
||||
return rcd;
|
||||
bail:
|
||||
kfree(rcd->opstats);
|
||||
kfree(rcd->egrbufs.rcvtids);
|
||||
kfree(rcd->egrbufs.buffers);
|
||||
kfree(rcd);
|
||||
|
|
|
|||
Loading…
Reference in a new issue