Re: [PATCH 1/8] Process characteristic descriptors in thermometer service.

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

 



Hi Santiago,

On Thu, Oct 20, 2011 at 6:46 AM, Santiago Carot-Nemesio
<sancane@xxxxxxxxx> wrote:
> +               } else
> +                       goto end;

We usually call this label "done".

> +
> +               return;
> +       }
> +
> +       bt_uuid16_create(&btuuid, GATT_CHARAC_VALID_RANGE_UUID);
> +
> +       if (bt_uuid_cmp(&desc->uuid, &btuuid) == 0)
> +               if (g_strcmp0(desc->ch->attr.uuid,
> +                                       MEASUREMENT_INTERVAL_UUID) == 0) {

You can join these nested if()'s in a single one and use &&.

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