Merge cherrypicks of ['partner-android-review.googlesource.com/2619978'] into android13-msm-pixelwatch-5.15-eos-release.

Change-Id: Iba79bb053dea965e94b722731bc766bb98363f12
diff --git a/comms.c b/comms.c
index 957dff9..649fe18 100644
--- a/comms.c
+++ b/comms.c
@@ -242,7 +242,7 @@
 static int read_msg(struct nanohub_data *data, struct nanohub_packet *response,
 		    int timeout)
 {
-	int ret, i;
+	int ret = ERROR_NACK, i;
 	const int max_size = sizeof(struct nanohub_packet) + MAX_UINT8 +
 	    sizeof(struct nanohub_packet_crc);
 	unsigned long end = jiffies + msecs_to_jiffies(READ_MSG_TIMEOUT_MS);