Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp491660ybl; Tue, 28 Jan 2020 06:48:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxSk1Sgww71KHnjHI5uvoPq6pYQZlbr0TD8jc7g2xk3F+9VtKmRMguQqGI6CDnSrbscFPzn X-Received: by 2002:a05:6830:10d7:: with SMTP id z23mr16617438oto.114.1580222880962; Tue, 28 Jan 2020 06:48:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580222880; cv=none; d=google.com; s=arc-20160816; b=x1WoSL2xCJhZvL+mkJhoBuVrZu7m6bEHF6hXIxzMR0rjXK1mevfWLeQdMu5B5KY/GF sPnfKEKy1sbprCdSnZlsHoBHRco1OdOqDOek5wHQFoZReER4Byg4Spyg+rqHyR50iTGe mCq8Wd2qg3w978IgL0BKFM5xxLFMlmVFiBPTWphQUr/14nZ1y2xwYYoct1Cj9TacBhg3 3i7MjwYnOGCvGwAriy0ZScijpLvyWp+ukwBZcHd33YAlU0MvJCNFFj/G08Ial++Oz0ni 2UcTvEd67guxSJaFah9Q3EC71omHWwaRg+zm195u4bMuZr6q1vAz7L7l6z/dqWa9NePV wZ6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DAkfMnZn4rCYncltpkCo8Eq+nRM6mxMxyoS/AZsnCbM=; b=a7S1+q1X6b5ftjIelhIfWPw15hCyK864UzgGnEBi+cGNxMy0ROsvwvJIu46mk3oxPU nbbZUjS5TmfE9tHwFJHSvia6tQCWxnwhe8zrrfPm50H080gwbNQ6/xJdrGtTcrMPOziw s0Z8fVrIU7KW1OPJzZIx+3onW1kVM7rcgS2NcJCvZRYo8T4jAPVPjHHNzzTA6k6pS90K 67GxTg75NCSPoEc5vu6iOgHGV/iVcrRxhGieCMaweAXKx3fUn6aQz27vL7z271sqFrsl gVxnsoT+/HKzBD9F1ASgi/JrrFploJOlsc5J2+xtfTdTrtm4AIsYUHLcnvEEyqzZzICx LubQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0t2cqkD7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si5103191oij.270.2020.01.28.06.47.48; Tue, 28 Jan 2020 06:48:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0t2cqkD7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727188AbgA1OM2 (ORCPT + 99 others); Tue, 28 Jan 2020 09:12:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:33708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728692AbgA1OM0 (ORCPT ); Tue, 28 Jan 2020 09:12:26 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6D8AC24688; Tue, 28 Jan 2020 14:12:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580220745; bh=3l9KYTvOjFvT1VGu3SQ+LVA+swFkY/dGrLC8yjQouQw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0t2cqkD7m6l91pNwoMUCWT426klwnqOp4/GY+NNwyCrqcwb0KO/h3QBorWcwkGwtt /6jD49vr3dwQEBcrmdHjpnk4KDOFm3sTCo9EFHwuhOupQpPmU+QxKP+91aiHx9qXLO HTyGErzRkZhae0QustpPu1o7AIHQike4+E4F0NZk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mathias Nyman , Ruslan Bilovol , Sasha Levin Subject: [PATCH 4.4 113/183] usb: host: xhci-hub: fix extra endianness conversion Date: Tue, 28 Jan 2020 15:05:32 +0100 Message-Id: <20200128135841.214448678@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135829.486060649@linuxfoundation.org> References: <20200128135829.486060649@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ruslan Bilovol [ Upstream commit 6269e4c76eacabaea0d0099200ae1a455768d208 ] Don't do extra cpu_to_le32 conversion for put_unaligned_le32 because it is already implemented in this function. Fixes sparse error: xhci-hub.c:1152:44: warning: incorrect type in argument 1 (different base types) xhci-hub.c:1152:44: expected unsigned int [usertype] val xhci-hub.c:1152:44: got restricted __le32 [usertype] Fixes: 395f540 "xhci: support new USB 3.1 hub request to get extended port status" Cc: Mathias Nyman Signed-off-by: Ruslan Bilovol Link: https://lore.kernel.org/r/1562501839-26522-1-git-send-email-ruslan.bilovol@gmail.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/host/xhci-hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c index 40c95ed6afbf6..3ef80c2c0dcc1 100644 --- a/drivers/usb/host/xhci-hub.c +++ b/drivers/usb/host/xhci-hub.c @@ -965,7 +965,7 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, } port_li = readl(port_array[wIndex] + PORTLI); status = xhci_get_ext_port_status(temp, port_li); - put_unaligned_le32(cpu_to_le32(status), &buf[4]); + put_unaligned_le32(status, &buf[4]); } break; case SetPortFeature: -- 2.20.1