mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
qed: remove cast to pointers passed to kfree
Remove unnecessary casts to pointer types passed to kfree. Issue detected by coccinelle: @@ type t1; expression *e; @@ -kfree((t1 *)e); +kfree(e); Signed-off-by: Chen Ni <nichen@iscas.ac.cn> Reviewed-by: Michal Kubiak <michal.kubiak@intel.com> Link: https://patch.msgid.link/20250311070624.1037787-1-nichen@iscas.ac.cn Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
2a5f08b33e
commit
f5825e79b2
|
|
@ -454,7 +454,7 @@ int qed_fill_dev_info(struct qed_dev *cdev,
|
|||
|
||||
static void qed_free_cdev(struct qed_dev *cdev)
|
||||
{
|
||||
kfree((void *)cdev);
|
||||
kfree(cdev);
|
||||
}
|
||||
|
||||
static struct qed_dev *qed_alloc_cdev(struct pci_dev *pdev)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user