Skip to content

Commit 8ab5059

Browse files
error27sudeep-holla
authored andcommitted
firmware: arm_scmi: Clean up a return statement in scmi_probe
The comments say "enabled" where "disabled" is intended. Also it's cleaner to return zero explicitly instead of ret. Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/Y86im5M49p3ePGxj@kili Signed-off-by: Sudeep Holla <[email protected]>
1 parent fe15c26 commit 8ab5059

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/firmware/arm_scmi/driver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2739,8 +2739,8 @@ static int scmi_probe(struct platform_device *pdev)
27392739
if (ret)
27402740
goto clear_dev_req_notifier;
27412741

2742-
/* Bail out anyway when coex enabled */
2743-
return ret;
2742+
/* Bail out anyway when coex disabled. */
2743+
return 0;
27442744
}
27452745

27462746
/* Coex enabled, carry on in any case. */

0 commit comments

Comments
 (0)