soc: qcom: mem-buf: Fix message queue registration check

The condition that determines if we print an error after
failing to register for the mem-buf message queue checks
the return code against EPROBE_DEFER. This is not correct, as
error codes are negative, so fix the check.

Change-Id: I4ed03bde56c6edf66e0ffed060ec23a87a46be54
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
Isaac J. Manjarres 2020-05-14 17:18:42 -07:00
commit 75455dfc54

View file

@ -1596,7 +1596,7 @@ static int mem_buf_probe(struct platform_device *pdev)
mem_buf_hh_msgq_hdl = hh_msgq_register(HH_MSGQ_LABEL_MEMBUF);
if (IS_ERR(mem_buf_hh_msgq_hdl)) {
ret = PTR_ERR(mem_buf_hh_msgq_hdl);
if (ret != EPROBE_DEFER)
if (ret != -EPROBE_DEFER)
dev_err(dev,
"Message queue registration failed: rc: %d\n",
ret);