aboutsummaryrefslogtreecommitdiff
path: root/drivers/mailbox
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-09-18 21:50:46 +0200
committerDavid S. Miller <davem@davemloft.net>2023-09-20 10:29:33 +0100
commit9b12e3f5a2d6e6cfa0c4b4dd9e1974542730ada0 (patch)
treeab1ee7d8e575013b865f31e1dcb1c7c9accc3e2c /drivers/mailbox
parentd5bd3038b1998f073da7831569a6d4a12e3ac646 (diff)
net: mdio: bcm-unimac: 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 ignored (apart from emitting a warning) 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. Eventually after all drivers are converted, .remove_new() is renamed to .remove(). Trivially convert this driver from always returning zero in the remove callback to the void returning variant. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/mailbox')
0 files changed, 0 insertions, 0 deletions