Re: [PATCH] Add SAP driver for ST-Ericsson U8500 platform

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

 



Hi Szymon,

On Mon, Jul 4, 2011 at 7:02 AM, Szymon Janc <szymon.janc@xxxxxxxxx> wrote:
> +       gstatus = g_io_channel_read_chars(io, buf, sizeof(buf), &bytes_read,
> +                                                                       &gerr);
> +       if (gstatus != G_IO_STATUS_NORMAL) {
> +               if (gerr)
> +                       g_error_free(gerr);
> +
> +               sap_error("error while reading from channel (%d)", gstatus);
> +               return TRUE;
> +       }

You can pass NULL to the last argument of g_io_channel_read_chars() if
you are not using the gerr (as in the case above).

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