aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2023-03-14 19:02:41 +0100
committerBjorn Andersson <[email protected]>2023-07-15 13:04:25 -0700
commit9519793bb6a731a3dd2453ad8515e8866e84c48e (patch)
tree3c65273c3c60e2e80b688cb656d8783d30235e73 /lib/test_fortify/write_overflow-memcpy.c
parent4cf16b6b743e0bbe3128cf97a193ee37110d597b (diff)
hwspinlock: u8500: 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. Signed-off-by: Uwe Kleine-König <[email protected]> Acked-by: Linus Walleij <[email protected]> Acked-by: Baolin Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions