Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp43514iog; Sun, 12 Jun 2022 18:16:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywuplUyUwrJEtnfCSKmgGc47lVrZoipwXuPdt0jxAVhkTVHiRojFu2JSzYrhgrVFQ2eBeu X-Received: by 2002:a17:906:4ccc:b0:6fe:9155:47ae with SMTP id q12-20020a1709064ccc00b006fe915547aemr48791840ejt.246.1655082973213; Sun, 12 Jun 2022 18:16:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655082973; cv=none; d=google.com; s=arc-20160816; b=wMwjJ9atuptmQqpH9ioCdglAJNcEDVzSUGOfPSZKDb4HJKK1zroylA1n78jsfCnTGS WTUEmVUmoZErXCaE97FkpQ4bMlSa9dz3I5oNc1VPYBuBWSekkfd/2KwE623VYMjCkLF3 cRjjuc2VoBXBrIaOPBeuBY3D381tQxtK+bsX1tVi38vOlJe2QG2Y7Sdzuxq2QjovCDq7 36d7bMhJhwjPWLWC4mfvT+/73wy2unsD5EhuHOuFQoheCH8Yn+g82hI0gF40Yeu+yDPM u4euUeKkxjfLBdAP3bTDDmz9fNNjBneC+fsEa1Nkj34doxUZ+0jS4aJIlP+oGFvhkUXW vSOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bs1pDxoqSwxHo6PhPuLte63s3qeUlbVxYb0CgUg+DU4=; b=iqZPLnK7dovAqHxXp3Wlh2V/RxdTEZysLyvU+qtQvPvpu/jPZafcIZAFm97y0hHGQX mTVoFhTnOgnoeAtVmwoKioRZHZMRaF2md9dp7YMPEwqG/ojojE3eSoithD861LbVUkBh RL68S0BgteMSJDG4eTK0JnXiuq3AQlzQi0pczgM8ktgqqerqNbmT3B/HLTv4f35Ik7r5 DlQPuifU336mfneImDLf77Hy1K8w7Mm89iKuRABZdO9YKwxXMNaQiaEPKxWvB9MfXqv9 C1ioU0zqK8IkX2Lgj9ky1JGR8YmgMVQfLUnll3H5pJ9f5874A0xuu1eT2US2+YbeWHDC hzQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OUYQfEQr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg6-20020a170907a40600b006fe9e0df24dsi7247032ejc.876.2022.06.12.18.15.48; Sun, 12 Jun 2022 18:16:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OUYQfEQr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236464AbiFLVjt (ORCPT + 99 others); Sun, 12 Jun 2022 17:39:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236272AbiFLVjo (ORCPT ); Sun, 12 Jun 2022 17:39:44 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F296718E28 for ; Sun, 12 Jun 2022 14:39:42 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id n10so7702583ejk.5 for ; Sun, 12 Jun 2022 14:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bs1pDxoqSwxHo6PhPuLte63s3qeUlbVxYb0CgUg+DU4=; b=OUYQfEQrOtz7F0Nm9V9fFHrIGYhY1uY24QXJxNItXxe5w8q6wW3ICsnjqbyHOW6DXr Jqmh+nt5FgmxYnt1u8l0tEFZFV8ZMiHIvBmm4bMYdii8Dq+3ltEx8X0CPs5qXkldwvXn j9jVXNuJcacNFK3uxOO+hAwfSkNBevUEwcNqo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bs1pDxoqSwxHo6PhPuLte63s3qeUlbVxYb0CgUg+DU4=; b=RgxulNaDboWypXW06BvxqUILV4QizHrnEaOAw/NZ9SKNv4pQ5oT4zQNH63nP9RaZV8 ObW/u/wAFCqrPdG1nUrt7fv3g1/aQiH4ickIEiE0LKxC1R4bvYxytdIHado9x/y57dZ1 DIZzAr46w8l4kX5XLABcMt0BIXuS4Zho4B2pEBGDR/ZmjXjAiyUMHeA5/JQgPEeNdRun ol0KCkmCWmCEUUrF72/U6X5B43ANqH2TVR+X+UBIVviyDfznDuBDpsg8tv1+PwksXwNE qNW42IanEKhZFwNLs0VrfdYljGO3v1RoCdMc5SZOGmCorL5/oSgtvIu3j7OMAgNAAQH9 5TvA== X-Gm-Message-State: AOAM5310hpasL0K1uVYm97zJEjgDuKqnZRSza3eH+cwd+OrcGME8eXhn E73fSVJos3DXHrAAM0vKQUlLRvNE4HqYYw== X-Received: by 2002:a17:907:1b1e:b0:6d7:31b0:e821 with SMTP id mp30-20020a1709071b1e00b006d731b0e821mr49755379ejc.334.1655069982282; Sun, 12 Jun 2022 14:39:42 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-80-116-90-174.pool80116.interbusiness.it. [80.116.90.174]) by smtp.gmail.com with ESMTPSA id u10-20020a1709061daa00b00711d546f8a8sm2909398ejh.139.2022.06.12.14.39.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jun 2022 14:39:41 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, Amarula patchwork , Oliver Hartkopp , Dario Binacchi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Marc Kleine-Budde , Paolo Abeni , Wolfgang Grandegger , linux-can@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v3 01/13] can: slcan: use the BIT() helper Date: Sun, 12 Jun 2022 23:39:15 +0200 Message-Id: <20220612213927.3004444-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220612213927.3004444-1-dario.binacchi@amarulasolutions.com> References: <20220612213927.3004444-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the BIT() helper instead of an explicit shift. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/net/can/slcan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/slcan.c b/drivers/net/can/slcan.c index 64a3aee8a7da..b37d35c2a23a 100644 --- a/drivers/net/can/slcan.c +++ b/drivers/net/can/slcan.c @@ -413,7 +413,7 @@ static int slc_open(struct net_device *dev) if (sl->tty == NULL) return -ENODEV; - sl->flags &= (1 << SLF_INUSE); + sl->flags &= BIT(SLF_INUSE); netif_start_queue(dev); return 0; } -- 2.32.0