Re: [PATCH RFC BlueZ] serial: Fix bogus errno usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Johan,

On Fri, Nov 18, 2011 at 7:27 AM, Johan Hedberg <johan.hedberg@xxxxxxxxx> wrote:
> bt_io_connect is not supposed to touch errno, so please don't send
> patches for that. If you want to get the exact error you pass a GError
> pointer, however even without that it's valid to check at least for a
> NULL return. A simple fix if you don't want to add GError to this port.c
> function is to return e.g. -EIO in case bt_io_connect returns NULL.

I just sent another patch that uses GError if it is set. I hope this
way it works just like the bt_io_connect() call in get_record_cb(), on
the same file.

Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux