From patchwork Sun Jul 7 12:17:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruslan Bilovol X-Patchwork-Id: 11034101 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9B11D912 for ; Sun, 7 Jul 2019 12:17:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A7D62833E for ; Sun, 7 Jul 2019 12:17:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BD2B2837D; Sun, 7 Jul 2019 12:17:33 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 137132833E for ; Sun, 7 Jul 2019 12:17:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726921AbfGGMRc (ORCPT ); Sun, 7 Jul 2019 08:17:32 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:34593 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726825AbfGGMRb (ORCPT ); Sun, 7 Jul 2019 08:17:31 -0400 Received: by mail-lj1-f193.google.com with SMTP id p17so13245066ljg.1; Sun, 07 Jul 2019 05:17:30 -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=SAMwT6DUHJKtrCvN/jv0WTWZlT3Adyo0fAKhCuWcf/M=; b=UGXb9TYxQ1dBTwuX3uGHVTmta0ifDlJxXCd4M9XkNcUsWKPrmDg/CZbHn+FrBTHdbS QfermUCUSCzF7h87ARN2ABT3YKJHtW/wUqxrzM7hrTHsooQpQ7mUvqjM46s0sDh9oeMa z0f74B/exNKvRNUCS57FdYfRE724+VU0UpwJPETsWqYFhzoZjeNFTqvfcXjwRGUVUJhE 5jtqNWWueunkokujlQNtNbDsXzkiGaWK3PKinIQMOwq91oCb+wa+KA/TNtAO91HiLCc/ jnrWcNF1ibLWXns72CIeXDaYvXWr/IBR++C7HKFjVDFNWrBKatuA/NWE7j2lkZWw+zxw RuTA== 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=SAMwT6DUHJKtrCvN/jv0WTWZlT3Adyo0fAKhCuWcf/M=; b=ezDV6l01Q0YHKKnTDoEsRcavknyxi8ZhJOdHTXiuITNOslSU6DzrxFzBGNwNGJMfeC ffWkm/1q8eu0T0VrWleZ0ijF7aN8AIDndcsUA7NCpeZqcCt9Z533qi7oWn/VvX/QDa0P k2vcuoU47I6pGSbri1iL3jv8qecN6cmuJugpJW7wDNUbrtIODFHWFoOJ48LGU63FO6Ml BdxY0Vz3q1yL9lxKiF/OL1JpvOZwN5+ygHAm/Jfjw30cjcwU3Z97RnRFADBiQMeW7M5B oA3NPrMvRfJEM0qTL6TalcC6sXHvDvJN+H/YjViSxMav1QfhNC6Hpqrt9Qch+NyUmiMY Ki4g== X-Gm-Message-State: APjAAAVMv+0okSbeeZxyt03CP9ZAYn+K+3gYEtHyDNfPpAGVAG4ERV3j vjXIwE8ZR85XUdoWRyG+G/6NS/BC X-Google-Smtp-Source: APXvYqzNMEnTfyeHiRkT/y6hMxdp+rpP0WXLeaAkmVVzTOIjXt8uOj2OZlcpOAEi7CsgYl/Jk1hz4A== X-Received: by 2002:a2e:b0f0:: with SMTP id h16mr7289700ljl.21.1562501849425; Sun, 07 Jul 2019 05:17:29 -0700 (PDT) Received: from localhost (122-109-207-82.ip.ukrtel.net. [82.207.109.122]) by smtp.gmail.com with ESMTPSA id n1sm2225136lfk.19.2019.07.07.05.17.28 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sun, 07 Jul 2019 05:17:28 -0700 (PDT) From: Ruslan Bilovol To: linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, mathias.nyman@intel.com Subject: [PATCH] usb: host: xhci-hub: fix extra endianness conversion Date: Sun, 7 Jul 2019 15:17:19 +0300 Message-Id: <1562501839-26522-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 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 --- 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 3abe70f..b7d23c4 100644 --- a/drivers/usb/host/xhci-hub.c +++ b/drivers/usb/host/xhci-hub.c @@ -1149,7 +1149,7 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, } port_li = readl(ports[wIndex]->addr + 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: