Re: [PATCH] Bluetooth: Fix mgmt handling of power on failures

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

 



Hi Johan,

On Tue, May 28, 2013 at 3:07 AM, Johan Hedberg <johan.hedberg@xxxxxxxxx> wrote:
> +int mgmt_set_powered_failed(struct hci_dev *hdev, int err)
> +{
> +       struct pending_cmd *cmd;
> +
> +       cmd = mgmt_pending_find(MGMT_OP_SET_POWERED, hdev);
> +       if (!cmd)
> +               return -ENOENT;
> +
> +       err = cmd_status(cmd->sk, hdev->id, MGMT_OP_SET_POWERED,
> +                        MGMT_STATUS_FAILED);
> +
> +       mgmt_pending_remove(cmd);
> +
> +       return err;
> +}
> +

Was the "err" parameter value supposed to be used on this function?

Best 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