Re: [PATCH v4] ath9k: verify the expected usb_endpoints are present

From: Johannes Berg
Date: Sat Oct 08 2022 - 16:11:31 EST


On Sat, 2022-10-08 at 15:02 +0300, Fedor Pchelkin wrote:
>
> + /* Verify the expected endpoints are present */
> + alt = interface->cur_altsetting;
> + if (usb_find_common_endpoints(alt, &bulk_in, &bulk_out, &int_in, &int_out) < 0 ||
> + usb_endpoint_num(bulk_in) != USB_WLAN_RX_PIPE ||
> + usb_endpoint_num(bulk_out) != USB_WLAN_TX_PIPE ||
> + usb_endpoint_num(int_in) != USB_REG_IN_PIPE ||
> + usb_endpoint_num(int_out) != USB_REG_OUT_PIPE) {
> + dev_err(&udev->dev,
> + "ath9k_htc: Device endpoint numbers are not the expected ones\n");
> + return -ENODEV;
>

Indentation somehow got pretty messed up now ..

johannes