Commit 9de6655c authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Wei Liu

drivers: hv: Fix missing error code in vmbus_connect()

Eliminate the follow smatch warning:

drivers/hv/connection.c:236 vmbus_connect() warn: missing error code
'ret'.
Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: default avatarMichael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/1621940321-72353-1-git-send-email-jiapeng.chong@linux.alibaba.comSigned-off-by: default avatarWei Liu <wei.liu@kernel.org>
parent 450605c2
...@@ -232,8 +232,10 @@ int vmbus_connect(void) ...@@ -232,8 +232,10 @@ int vmbus_connect(void)
*/ */
for (i = 0; ; i++) { for (i = 0; ; i++) {
if (i == ARRAY_SIZE(vmbus_versions)) if (i == ARRAY_SIZE(vmbus_versions)) {
ret = -EDOM;
goto cleanup; goto cleanup;
}
version = vmbus_versions[i]; version = vmbus_versions[i];
if (version > max_version) if (version > max_version)
......
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