Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2094388iof; Tue, 7 Jun 2022 19:31:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGBtlizFMc/l/rI1kgbnh8bSpZl4jDjUZ+ZTPtBM21jDyFNkpVdEKvvddn+lEsxAeEOCAT X-Received: by 2002:a63:ea4f:0:b0:3c6:6534:d8f2 with SMTP id l15-20020a63ea4f000000b003c66534d8f2mr28018302pgk.187.1654655474394; Tue, 07 Jun 2022 19:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654655474; cv=none; d=google.com; s=arc-20160816; b=K8Vrp8C5YVvdAVa/+UOrdiawS122/q7YWd0UPlJ+WOB+BelTbcAkRE68TvFx5uaZIu cheRnu2vqewzumCi0skcHsjA+be78RB8GY9DlGidiHL9C2qdF5agms6b+z42Hpmo0rmI PvuVOvHIj0MPPpoy4caj2S3SzkMMy7GG6T4QdVHZ/smIRD88X8MqHU9+AL4z7TvBjazd OtxNY8NW1lKyp8jngqf6FOeGacHDTDffiqBvKWu8NrbjIyhhHH2TfgS09LaeNIoEuN4J yRFWSFz6ZxJPeFxVt8Sh+f90oWWzD2/GA/gTBPm/7aYlhgbtO6sC3W6KWE1u8umtHJM8 sK3Q== 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=CBY26428AsgO42bUNkI3Xmu9+XGt4S7I1D7qDZJnCuY=; b=W/z7ZeqDMQuqtoUeJ81IhfmkYp3ISZtU8GckVXUTY3cNJrNQ1hivODCrLwv2/TsiYX SIujSDJvzFRGITW52bxdpdTXZFp9vmW4YlUDD0pU1bqNldfGrW7dQxlfY55fK46ecl8c V4Ikru1aXJAwvgd9DnVA+A5UMW/EF0ZpL4mZotgfU8WoWsmXQInaa9sR5uPh/FP9D9P3 u7qfCEQE/E06JHAcGT+T1RaGvHeclQVJ/rmsap8QTsp3+lNFpBFkPc0hj1Ntlleoco6B OqQTh22IFMGbjMNYupfofYyXU45MWnZDxcjj6K4ohQhe1y/Oa/6SeInMmdQMNd+6ChTs 8AOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WsqvRqj2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t10-20020a17090abc4a00b001c6f8b9aea5si24687685pjv.42.2022.06.07.19.31.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 19:31:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WsqvRqj2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B6AB83B7E4D; Tue, 7 Jun 2022 19:10:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240041AbiFGJs2 (ORCPT + 99 others); Tue, 7 Jun 2022 05:48:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240011AbiFGJsT (ORCPT ); Tue, 7 Jun 2022 05:48:19 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C3AAE7306 for ; Tue, 7 Jun 2022 02:48:13 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id n124-20020a1c2782000000b003972dfca96cso9217386wmn.4 for ; Tue, 07 Jun 2022 02:48:13 -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=CBY26428AsgO42bUNkI3Xmu9+XGt4S7I1D7qDZJnCuY=; b=WsqvRqj2DwkAk6bgPB5XF4je1x7cZf8A72CMRHydGqC1NtxVXxkb0CRGViR5GxWSkc +1oHBp0OYfI6DwqAc8Skbjj9PCDqUzZbZe2jlRY2kK+xGlg00SSR/VXCcHcaDwAbtTxV qx3rtcu9Xvpvz0G053GVqailSVaZ6IVkEIvdU= 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=CBY26428AsgO42bUNkI3Xmu9+XGt4S7I1D7qDZJnCuY=; b=UrUd5BpzLvSbY7QOfXGEy613idvQ5FWKfqOWJD/MeOVxtIBNPrUbu35yPafGwZRGMu 1twwDp8qW+SoWN6QI/uxgC7XdCZI5KOer0yMoEQcgLSMB74qhatVUXsOMBM1n4q+sQQe cTTB+mDd6Pk9QN8EZjJXYdQRKYDpTJzPwFbvkQLiDMYef70kmOTh8RyftpcnQt2fOD2O adhmiv+rHW1LhzGVq68oszNBZonbbjmC8N+48uoW7H+1LDGGDBZitoyRjsoQ3bBgJP4g 5SAH6SPXpGmSfmDnquigm0oMJBLO6nIyH9dsqUE/yU8aTjH6fl9Joux92X8OW2TRQv4u rpAQ== X-Gm-Message-State: AOAM5325qN/caDVUpgM3qc71GXXQh9FvzOaq+jEUqr8LFNjXQprLI0NV Svd8ixqPAQ1f/wmciWMgjN0YpWce+orANg== X-Received: by 2002:a05:600c:3caa:b0:394:8fb8:716 with SMTP id bg42-20020a05600c3caa00b003948fb80716mr56163311wmb.105.1654595291462; Tue, 07 Jun 2022 02:48:11 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (mob-5-90-137-51.net.vodafone.it. [5.90.137.51]) by smtp.gmail.com with ESMTPSA id o4-20020a05600c510400b0039748be12dbsm23200547wms.47.2022.06.07.02.48.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 02:48:11 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , michael@amarulasolutions.com, 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: [RFC PATCH 01/13] can: slcan: use the BIT() helper Date: Tue, 7 Jun 2022 11:47:40 +0200 Message-Id: <20220607094752.1029295-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220607094752.1029295-1-dario.binacchi@amarulasolutions.com> References: <20220607094752.1029295-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 --- 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