Skip to content

Commit c157a60

Browse files
Minghao Chialexandrebelloni
authored andcommitted
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
1 parent 6742ca6 commit c157a60

File tree

1 file changed

+1
-6
lines changed
  • drivers/i3c/master/mipi-i3c-hci

1 file changed

+1
-6
lines changed

drivers/i3c/master/mipi-i3c-hci/core.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -768,13 +768,8 @@ static int i3c_hci_probe(struct platform_device *pdev)
768768
static int i3c_hci_remove(struct platform_device *pdev)
769769
{
770770
struct i3c_hci *hci = platform_get_drvdata(pdev);
771-
int ret;
772771

773-
ret = i3c_master_unregister(&hci->master);
774-
if (ret)
775-
return ret;
776-
777-
return 0;
772+
return i3c_master_unregister(&hci->master);
778773
}
779774

780775
static const __maybe_unused struct of_device_id i3c_hci_of_match[] = {

0 commit comments

Comments
 (0)