Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp474769ybh; Sat, 7 Mar 2020 02:52:08 -0800 (PST) X-Google-Smtp-Source: ADFU+vsNPvx03kcVLIal0WftmTCJgD6ZXpchQYBS6M2JtPBeLWFeLsWmmLj0f/v40KwQFruBRAfn X-Received: by 2002:a9d:7a59:: with SMTP id z25mr6307759otm.315.1583578328469; Sat, 07 Mar 2020 02:52:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583578328; cv=none; d=google.com; s=arc-20160816; b=pmjXcZ3cJ3CwSuM9KIiQQy02nnsvQiqCUfTSRJj08OQv7M/BW2vBpdfxRp66WUWVVm 7kHMefSlF+RYj/Cfj9Tyk5ACvWYysonu4aN5QJT3ARHmLW2lqypz0EGP1rgis5RT1qrA EBrftYEx6yhl7T988qyNIugn99C//HUdwGtXdx80ZgHFoqGWizA7g9Yzp746NRPonPCU UCmIa22eEBYP421yNGCY26oPPuUfFILLx0uXKDZk23l8eWtQ6CpjuatrvkDVZ4xd/i2h wht7ozoRdtwIjUcKHn2An04o9Rwp15iTGU+/VTPXhz5RkGfK6qQlovDmNFv6jCC0RSN0 UpcA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=DGEMLf7OF/NZJjBfTYL3JPRd/C1kGibQpB986NZSUDY=; b=jFEPXlvnUMkkfFtOz2VsihH5tkL0takglbBf3Yh6PC3zXOtP+s+phsIGzdepAw6Dzj RIfcpNmAmAw+S/MSJkkO1K+IzVCd0CN7s9QNmAVMpUxBb/OK3lS0ktOrmX+YLZ+pHEjT F4cPEmevnk1m4wXUXBvaazvUAELxYth0vm5Sfm/P2eRaIcKGKNXwgdVy6jEOCuBdOZQ6 bSMIgS/B4CxzvDaTPCIgJF+2sJt9cMZFFzJOElY9jjbIJbp/pQ7paLiR6cRSP2LIAVK7 xCBr6U+zvM9acnmDUMq0T1ULa1G2Cmya6QervrtePwW+WHY9R8SWWFjLOX4puYmvQu3B ZXZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=CrlEqLGf; 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 i16si2954120otr.52.2020.03.07.02.51.57; Sat, 07 Mar 2020 02:52:08 -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=@gmx.net header.s=badeba3b8450 header.b=CrlEqLGf; 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 S1726199AbgCGKue (ORCPT + 99 others); Sat, 7 Mar 2020 05:50:34 -0500 Received: from mout.gmx.net ([212.227.15.15]:40343 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725909AbgCGKue (ORCPT ); Sat, 7 Mar 2020 05:50:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1583578227; bh=m/2yOii9GTOFmXitzlRFIRYOK4ogqrwhgzd5gIHiD2c=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=CrlEqLGfTluS781kQikcgSfuMNXwVTycxpScN4ET7vkgVn/zRuKQdx9C6XiCjPgpF OXN0MTEGOB3qMSsTVy2jBnA0Xh9HZcWW9+dajJX0QmMYsksVQtk9urCxoRnq3NQScz aUS3P/ymbRzuLweRDE8UiHlB0rrS2PUjWo0opWUc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([83.52.229.196]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MZTqW-1ioxbJ1T0A-00WY6y; Sat, 07 Mar 2020 11:50:27 +0100 From: Oscar Carter To: Forest Bond , Greg Kroah-Hartman Cc: Quentin Deslandes , Malcolm Priestley , Colin Ian King , Gabriela Bittencourt , Oscar Carter , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: vt6656: Use BIT_ULL() macro instead of bit shift operation Date: Sat, 7 Mar 2020 11:49:29 +0100 Message-Id: <20200307104929.7710-1-oscar.carter@gmx.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:jWIm+lfcudgmy2y27XLt/W6/L36/oomYEd3rwqai1CelUY23z3h C57pIPeR6zLhm8xl1G1W8aZDffT4bY7dYSb3ANGBbO0BX0R2mlIp2JHW5P9u1w5vw4Bu1W/ ggH112BFIFhQNd+vDjFQtuE5+i5A718+WfPPe6OYRIbnNXsOndB/RmG8UJy6j75dTleh3+P ZxRutwIYi3KgJPcW8z7QA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:zF6BmCqcQmc=:iJO98o1L7n/lsy2XwjsOw5 nBS15YSBF0xJwAFdU/3m+GAhnmLuWhHxGVo8Uk6Z3aEZo9iULEHfhzo03kBzsPugMCnr5XKEv gxGKvcJuU7yxuv4nABCBwdlMqQLueMq5/zLcT8zPMNtzatbu4Riby3gm/iHHgvcs/TZ2cnkd4 UaV3HeSlrq6dvgrp3bsSpAceJ/J7y0IAbhxQXgReFYZGFXaezVKZqVFVPsUDT0m6MaN8e6/H/ nf/OulJdjaJHJ6wr1h0QXsXSYwjJlzo9jqS2MpcKuIZ/qs9RymPcel+Vi2o2G4C0csvkVb/s8 DUXyRWnDCcFubEbZ5I8Op/rAWzpgnjv9+e64GZGTATtChhA2ngQHv4+HrIq2000FgRE016iQR ziQ/5MbdSCKejawrh1x4Z1djiy3UMN7F+N/uptmAyAEyBuTqd3TSlz4SyI7075MUjEV52wDPx WAiQwetlTlVz12u/NBOPxjLeN2ETbxuzbAwlRduDt+VxHweyBL8GytoS9v57zhyLvCiRC/ged 5ZKv8eRiBIqj3NkKSJoQKa4HC1Kr5Hx0S6EB8f2F8IYBZfhvZn1rrjq1LJv1lxznk0f3x/VgS ORZDULM+iEXbORPn1ntY4RhJBBTbgiars0V2kZu2iq0bf5UQ5azacrPCOXOxD1f/xEUTW/Sh5 bdh10eqUSt4fPyZMGWDBdCJ1aS+qN7J/VSX/PDqf+uL2nzGP/ShJjCfDeUGDM6GDHygefr16w +7ENfqJwNlAIxMts+uIlj4haa5zEXC4AaBzjKFUEOqGnQUw0VPXUw+9Tdju6WcAKvYgtcLFhx AO8437daahzDzpizmWKo26yW6Pph0LJJ1mD60q/lzsu9lRJqhek6hRpvQUwCELPlIcC+jyrSq qDkQmENt4qmKiPltFEF7okzZDNMnMSy33lelQMkp23Vqm4UcWsG+AoMVtuFqHsJZdiEVBSGle dQtsE8B4P7VYdwOHCN2IXhdOpco8sMROqe2G9SDfbf3E0jptrGO4EdJA2SP4HoK9VAf4IyPaP 90LjOPmxHRmGNToubNPB1py9e09WxPISPgkMelSdH7OXHPEESiAXhTqvO31R6CZU64BatHAp5 dzxiO/NghwFcaQXZZO+ThxPzHw9odTEWA5t21gsBOpAz1mx6vHRVtz/j4FzEF4l1X379xJNPB gnYKF0r8Fc2Zc/AZuzTvc4+T0YrLxzuvOFNuXtlVUiLFZXXtOlYiaU+d7kyYi9M45tBMOOkHb nSeR96LgmWy1uwV5h Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace the bit left shift operation with the BIT_ULL() macro and remove the unnecessary "and" operation against the bit_nr variable. Signed-off-by: Oscar Carter =2D-- drivers/staging/vt6656/main_usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/ma= in_usb.c index 5e48b3ddb94c..f7ca9e97594d 100644 =2D-- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -21,6 +21,7 @@ */ #undef __NO_VERSION__ +#include #include #include #include "device.h" @@ -802,8 +803,7 @@ static u64 vnt_prepare_multicast(struct ieee80211_hw *= hw, netdev_hw_addr_list_for_each(ha, mc_list) { bit_nr =3D ether_crc(ETH_ALEN, ha->addr) >> 26; - - mc_filter |=3D 1ULL << (bit_nr & 0x3f); + mc_filter |=3D BIT_ULL(bit_nr); } priv->mc_list_count =3D mc_list->count; =2D- 2.20.1