Skip to contentSkip to conversation

i3c/master: simplify the return expression of i3c_hci_remove()

PATCH Applied [email protected] 2 participants 2 messages May 5, 2022 – May 17, 2022 I3C

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i3c/master: simplify the return expression of i3c_hci_remove()

From: Minghao Chi <[email protected]>

Simplify the return expression.

---
 drivers/i3c/master/mipi-i3c-hci/core.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/i3c/master/mipi-i3c-hci/core.c +1 -6
index 8c01123dc4ed..6aef5ce43cc1 100644
@@ -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[] = {
Signature · 1 line
2.25.1