mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-08 14:23:19 +00:00
i3c/master: simplify the return expression of i3c_hci_remove()
Simplify the return expression. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220505021954.54524-1-chi.minghao@zte.com.cn
This commit is contained in:
parent
6742ca620b
commit
c157a606e7
@ -768,13 +768,8 @@ static int i3c_hci_probe(struct platform_device *pdev)
|
||||
static int i3c_hci_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct i3c_hci *hci = platform_get_drvdata(pdev);
|
||||
int ret;
|
||||
|
||||
ret = i3c_master_unregister(&hci->master);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
return i3c_master_unregister(&hci->master);
|
||||
}
|
||||
|
||||
static const __maybe_unused struct of_device_id i3c_hci_of_match[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user