lkml.org 
[lkml]   [2018]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Bluetooth: btqcomsmd: Fix channel open check
On Tue 27 Feb 22:25 PST 2018, Marcel Holtmann wrote:
> > btq->cmd_channel = qcom_wcnss_open_channel(wcnss, "APPS_RIVA_BT_CMD",
> > btqcomsmd_cmd_callback, btq);
> > - if (IS_ERR(btq->cmd_channel))
> > - return PTR_ERR(btq->cmd_channel);
> > + if (!btq->cmd_channel)
> > + return -ENOENT;
>
> Any reason not to fix qcom_wcnss_open_channel to use PTR_ERR?
>

Not that I can come up with, and obviously I did expect it to do so in
the past. I'll do that.

Thanks,
Bjorn

\
 
 \ /
  Last update: 2018-03-04 20:56    [W:0.048 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site