diff options
author | Uwe Kleine-König <[email protected]> | 2023-08-01 13:02:34 +0200 |
---|---|---|
committer | Chun-Kuang Hu <[email protected]> | 2023-08-10 23:41:55 +0000 |
commit | b3af12a0b46888340e024ba8b231605bcf2d0ab3 (patch) | |
tree | ce35217ba5229b8cdffbbff64b5e999b5c9cebb3 /lib/test_fortify/write_overflow-memcpy.c | |
parent | 61a97dec5f432cf33e4ac7460b9e02abf031f2c1 (diff) |
drm/mediatek: 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 the mediatek drm drivers from always returning zero in
the remove callback to the void returning variant.
Reviewed-by: Matthias Brugger <[email protected]>
Reviewed-by: Thomas Zimmermann <[email protected]>
Reviewed-by: Jyri Sarha <[email protected]>
Signed-off-by: Uwe Kleine-König <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/
Signed-off-by: Chun-Kuang Hu <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions