From patchwork Thu Feb 7 00:03:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10800291 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 218B813B4 for ; Thu, 7 Feb 2019 00:03:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C85E2D4FB for ; Thu, 7 Feb 2019 00:03:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF4892D62D; Thu, 7 Feb 2019 00:03:40 +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 85D5D2D4FB for ; Thu, 7 Feb 2019 00:03:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726598AbfBGADk (ORCPT ); Wed, 6 Feb 2019 19:03:40 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42418 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbfBGADj (ORCPT ); Wed, 6 Feb 2019 19:03:39 -0500 Received: by mail-pg1-f196.google.com with SMTP id d72so3674353pga.9; Wed, 06 Feb 2019 16:03:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SWqatzBoLVZPIIbjTL1UeI0Wg+QJBI2JUsh0P/6kqdI=; b=hO9NUmVpB5vJLaYLgDx9ifAoc89SZa8LJm8ArgqX8ygUDUO/1HlTIrpqcx+voW5IcH Nb9ffzRSWrnKf/BJWBQg7lOlwjfygM/NikbxPkZ/SVhTOVvZaz8TWwyDHBN2icbrsNFV gpBy6f65KUksxsAzcYgglRwZgBQHk58KOnNPEirmzFcgPnIsi2GogD5xl6OgxlMXJUWV 9IaSZe3ggFRJSWHq54ePk0oUdpIkVVDM0OUMhUjVeslUaIUgel/aF0imYzV4sBcL6Mso EpaVGsa29EGDHM576rRdyx+GYnflZY02w3/+qGU13IgdWyFB62yGDqfFW3yuXFlFhoh3 LydQ== 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:mime-version :content-transfer-encoding; bh=SWqatzBoLVZPIIbjTL1UeI0Wg+QJBI2JUsh0P/6kqdI=; b=ZIh6qDGfNmp7s/ljCnFUWZ5ViW8cad42+Nz7JwcZBH+E7GzYd7XKPIgBIuGXabg/vw HhAeNMnGeKp6PTid6aeqKh9aOaZ6BUv8BYpinLmRJ/kipLHPjfM5RKoyjhhGvXPBW4q0 KwiUD8JQCikZgg9BU4juTpgbBoEvsp+yrI9jmCiCM3cn+s8s2wgWPbp6l/0E3SsWHgAm 9WtWZ1ohJTATvt6bwFvSOGKhbQyQUky26NMeCi5kXeIvdEQTgvIKflSyst3hvV1oLNvX DQflYwRU08EQAXoTsW715vdsCoNsxuX9q7c60I18nN9nAm9X0cjKCo51pApvjMoB3pkv RbVA== X-Gm-Message-State: AHQUAubaOeCZNfKiGc/iGjV+7bJfkCshXguP0fUc9gy/Oair/qqy7GAc DIOMvct8bg2cvXSat1FYLmqAy7Lu X-Google-Smtp-Source: AHgI3Ia1uiFMIgktyxqzjXtc1MUatCEu+12TRv66bY27MU1ASOEHp+n+kVxjCdO5ZcEOOR7PEzTTeQ== X-Received: by 2002:a65:6496:: with SMTP id e22mr11940257pgv.7.1549497818632; Wed, 06 Feb 2019 16:03:38 -0800 (PST) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id q187sm18316927pfq.128.2019.02.06.16.03.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Feb 2019 16:03:37 -0800 (PST) From: Andrey Smirnov To: linux-usb@vger.kernel.org Cc: Andrey Smirnov , Mathias Nyman , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH] xhci: Drop superfluous initialization in xhci_queue_ctrl_tx() Date: Wed, 6 Feb 2019 16:03:31 -0800 Message-Id: <20190207000331.7547-1-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 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 Simplify filed's initialization by directly assigning its final value instead of initializing the variable to sero and then bitwise or-ing it. Signed-off-by: Andrey Smirnov Cc: Mathias Nyman Cc: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/usb/host/xhci-ring.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 40fa25c4d041..91e592bfb80d 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -3379,8 +3379,7 @@ int xhci_queue_ctrl_tx(struct xhci_hcd *xhci, gfp_t mem_flags, /* Queue setup TRB - see section 6.4.1.2.1 */ /* FIXME better way to translate setup_packet into two u32 fields? */ setup = (struct usb_ctrlrequest *) urb->setup_packet; - field = 0; - field |= TRB_IDT | TRB_TYPE(TRB_SETUP); + field = TRB_IDT | TRB_TYPE(TRB_SETUP); if (start_cycle == 0) field |= 0x1;