aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2023-07-10 09:19:46 +0200
committerJakub Kicinski <[email protected]>2023-07-11 20:24:33 -0700
commitae18facf566c94ba78b2acbe26feae5b5596cbea (patch)
tree4022e29d5699e8dcb5d7695a57f6c623275ef4b7 /drivers/fpga/fpga-mgr.c
parent4be0ebc33f39f22f5568eac9d23715d79f1d110f (diff)
net: ucc_geth: Convert to platform remove callback returning void
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to make the remove callback return void. In the first step of this quest all drivers are converted to .remove_new() which already returns void. Trivially convert this driver from always returning zero in the remove callback to the void returning variant. Reviewed-by: Michal Kubiak <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions