From patchwork Fri May 25 16:11:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruslan Bilovol X-Patchwork-Id: 10427927 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D2D95602D8 for ; Fri, 25 May 2018 16:11:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B730428A5C for ; Fri, 25 May 2018 16:11:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB57229765; Fri, 25 May 2018 16:11:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9119F28A5C for ; Fri, 25 May 2018 16:11:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967104AbeEYQLt (ORCPT ); Fri, 25 May 2018 12:11:49 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54175 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967068AbeEYQLp (ORCPT ); Fri, 25 May 2018 12:11:45 -0400 Received: by mail-wm0-f65.google.com with SMTP id a67-v6so15725721wmf.3; Fri, 25 May 2018 09:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=aRURfkoqVJDIXESB/H51sQwEfTSIHJfermtr1ER6SrY=; b=h58/l/wtaS4Ci88f2w+uNjkMUk0mKDq2YjVk+jbbv1EWaUoFKyhDvVjNfmg68Ohjbi NM3cQtSzf+4EnfzFTSnlyCcm1ony0+JPTrq2z1L5MakOwNW0qG6lC6pKiHky+Ua80cpl jkM8lPGVcPZOD7aLaXmwzd8Q4Tf7RUDd9+zMPi/adlzz7+HWp2pMAWiQvBjgpoydmbmb YatkF6shCdMW9QyXS+OZj8Z+ZzME6rpvsQMGRdEZR7uKU6hlIuU2Q2s//Si8fv+0LdFG J9siw5kOotyFzN/jRookJoeaOpyVsINYGDdr0MVlRxpIjHQaUIim/4duc8PK0onyNFbd NQkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=aRURfkoqVJDIXESB/H51sQwEfTSIHJfermtr1ER6SrY=; b=sVMBQkw49eh2W1Vtu/9cRTTURe8phR3fb0SzbEsSGSbnrCjJf01+88KlHoIT+ZCCFg tLQtRTAUq3KoqMVZIZaMvbfsbJA/VRNEDMwqeTx6Mh8aM3hYexO5/DJsWfy50y7Gq21e eKCh3Vrsy8evCtqW/yJ9m777BpR2booMbAgJ0Br6d1sxSBkFtigbS7GG0yBPOv9RzCb0 F75NAZqHz+FGZekW1wmDlcrNApNGUXS7Tcj6tUDCSi/3ROb6NCXPC7yQAi9nGXYKrehn O0T1RjLpxXz0R0/Dd+5skrhmy2di9vKr2+jWvhbdpJAasmOVmWP8Ed1klhBznUeGePhT PtNw== X-Gm-Message-State: ALKqPweYjRJpTF0mMSMWyBq45cjCrHYQ50REx18ba1a60yggJY3iCUOT T5hmaFcoY9JVp8zc3sfrmCtR7Ega X-Google-Smtp-Source: ADUXVKJdksrCYqjLrJuqbxTnMIejq1Zc6TXpv2F6L2bhI3X/UwRcWILEcDL8MzKUnvBU9/+LJwgNCw== X-Received: by 2002:a1c:a8c9:: with SMTP id r192-v6mr2547887wme.134.1527264704161; Fri, 25 May 2018 09:11:44 -0700 (PDT) Received: from localhost ([85.159.6.22]) by smtp.gmail.com with ESMTPSA id z18-v6sm30081066wrc.36.2018.05.25.09.11.42 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 25 May 2018 09:11:42 -0700 (PDT) From: Ruslan Bilovol To: Greg Kroah-Hartman Cc: Dmytro Panchenko , Felipe Balbi , stable , linux-usb@vger.kernel.org Subject: [PATCH] usb: core: message: remove extra endianness conversion in usb_set_isoch_delay Date: Fri, 25 May 2018 19:11:40 +0300 Message-Id: <1527264700-1769-1-git-send-email-ruslan.bilovol@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP No need to do extra endianness conversion in usb_set_isoch_delay because it is already done in usb_control_msg() Fixes: 886ee36e7205 ("usb: core: add support for USB_REQ_SET_ISOCH_DELAY") Cc: Dmytro Panchenko Cc: Felipe Balbi Cc: stable # v4.16+ Signed-off-by: Ruslan Bilovol --- drivers/usb/core/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c index 0c11d40..7b13700 100644 --- a/drivers/usb/core/message.c +++ b/drivers/usb/core/message.c @@ -940,7 +940,7 @@ int usb_set_isoch_delay(struct usb_device *dev) return usb_control_msg(dev, usb_sndctrlpipe(dev, 0), USB_REQ_SET_ISOCH_DELAY, USB_DIR_OUT | USB_TYPE_STANDARD | USB_RECIP_DEVICE, - cpu_to_le16(dev->hub_delay), 0, NULL, 0, + dev->hub_delay, 0, NULL, 0, USB_CTRL_SET_TIMEOUT); }