tools: acrnd: Fixed get_sos_wakeup_reason()
get_sos_wakeup_reason() runs into error branch without any error, so no wakeup reason will be returend. Acked-by: Yan Like <like.yan@intel.com> Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
This commit is contained in:
parent
2d802d0afe
commit
a86a25f369
|
@ -284,7 +284,7 @@ unsigned get_sos_wakeup_reason(void)
|
|||
req.msgid = WAKEUP_REASON;
|
||||
req.timestamp = time(NULL);
|
||||
|
||||
if (mngr_send_msg(client_fd, &req, &ack, DEFAULT_TIMEOUT))
|
||||
if (mngr_send_msg(client_fd, &req, &ack, DEFAULT_TIMEOUT) <= 0)
|
||||
fprintf(stderr, "Failed to get wakeup_reason from SOS, err(%d)\n", ret);
|
||||
else
|
||||
ret = ack.data.reason;
|
||||
|
|
Loading…
Reference in New Issue