Commit 6bed395d authored by Dan Carpenter's avatar Dan Carpenter Committed by Sudeep Holla

firmware: arm_scmi: Return a literal instead of a variable

In this context "return scmi_dev;" and "return NULL;" are equivalent
but it is more readable to return a literal.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Reviewed-by: default avatarCristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/Y/Yx8pOdf8rNhPVe@kiliSigned-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent 8ab5059d
...@@ -436,7 +436,7 @@ struct scmi_device *scmi_device_create(struct device_node *np, ...@@ -436,7 +436,7 @@ struct scmi_device *scmi_device_create(struct device_node *np,
/* Nothing to do. */ /* Nothing to do. */
if (!phead) { if (!phead) {
mutex_unlock(&scmi_requested_devices_mtx); mutex_unlock(&scmi_requested_devices_mtx);
return scmi_dev; return NULL;
} }
/* Walk the list of requested devices for protocol and create them */ /* Walk the list of requested devices for protocol and create them */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment