mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
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:
parent
ca3e7ebe4f
commit
75455dfc54
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue